negate
(Package: purrr) :
Negate a predicate function.
Negate a predicate function.
● Data Source:
CranContrib
● Keywords:
● Alias: negate
●
0 images
|
rdunif
(Package: purrr) :
Generate random samples from a discrete uniform distribution
Generate random samples from a discrete uniform distribution
● Data Source:
CranContrib
● Keywords:
● Alias: rdunif
●
0 images
|
rerun
(Package: purrr) :
Re-run expressions multiple times.
This is a convenient way of generating sample data. It works similarly to replicate(..., simplify = FALSE) .
● Data Source:
CranContrib
● Keywords:
● Alias: rerun
●
0 images
|
keep
(Package: purrr) :
Keep or discard elements using a predicate function.
keep and discard are opposites. compact is a handy wrapper that removes all elements that are NULL .
● Data Source:
CranContrib
● Keywords:
● Alias: compact, discard, keep
●
0 images
|
map
(Package: purrr) :
Apply a function to each element of a vector
map() returns the transformed input; walk() calls .f for its side-effect and returns the original input. map() returns a list or a data frame; map_lgl() , map_int() , map_dbl() and map_chr() return vectors of the corresponding type (or die trying); map_df() returns a data frame by row-binding the individual elements.
● Data Source:
CranContrib
● Keywords:
● Alias: map, map_chr, map_dbl, map_df, map_int, map_lgl, walk
●
0 images
|
splice
(Package: purrr) :
Splice objects and lists of objects into a list
This splices all arguments into a list. Non-list objects and lists with a S3 class are encapsulated in a list before concatenation.
● Data Source:
CranContrib
● Keywords:
● Alias: splice
●
0 images
|
detect
(Package: purrr) :
Find the value or position of the first match.
Find the value or position of the first match.
● Data Source:
CranContrib
● Keywords:
● Alias: detect, detect_index
●
0 images
|
set_names
(Package: purrr) :
Set names in a vector
This is a snake case wrapper for setNames , with tweaked defaults, and stricter argument checking.
● Data Source:
CranContrib
● Keywords:
● Alias: set_names
●
0 images
|
prepend
(Package: purrr) :
Prepend a vector
This is a companion to append() to help merging two lists or atomic vectors. prepend() is a clearer semantic signal than 'c()' that a vector is to be merged at the beginning of another, especially in a pipe chain.
● Data Source:
CranContrib
● Keywords:
● Alias: prepend
●
0 images
|
slice_rows
(Package: purrr) :
Slice a data frame into groups of rows
slice_rows() is equivalent to dplyr's group_by() command but it takes a vector of column names or positions instead of capturing column names with special evaluation. unslice() removes the slicing attributes.
● Data Source:
CranContrib
● Keywords:
● Alias: slice_rows, unslice
●
0 images
|