slice_rows | R Documentation |
slice_rows()
is equivalent to dplyr's
dplyr::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.
slice_rows(.d, .cols = NULL) unslice(.d)
.d |
A data frame to slice or unslice. |
.cols |
A character vector of column names or a numeric vector
of column positions. If |
A sliced or unsliced data frame.
by_slice()
and dplyr::group_by()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.