keyed-df-one-tbl | R Documentation |
Defined methods for dplyr generic single table functions. Most of them
preserve 'keyed_df' class and 'keys' attribute (excluding summarise
with
scoped variants, distinct
and do
which remove them). Also these methods
modify rows in keys according to the rows modification in reference
data frame (if any).
## S3 method for class 'keyed_df'
select(.data, ...)
## S3 method for class 'keyed_df'
rename(.data, ...)
## S3 method for class 'keyed_df'
mutate(.data, ...)
## S3 method for class 'keyed_df'
transmute(.data, ...)
## S3 method for class 'keyed_df'
summarise(.data, ...)
## S3 method for class 'keyed_df'
group_by(.data, ...)
## S3 method for class 'keyed_df'
ungroup(x, ...)
## S3 method for class 'keyed_df'
rowwise(data, ...)
## S3 method for class 'keyed_df'
distinct(.data, ..., .keep_all = FALSE)
## S3 method for class 'keyed_df'
do(.data, ...)
## S3 method for class 'keyed_df'
arrange(.data, ..., .by_group = FALSE)
## S3 method for class 'keyed_df'
filter(.data, ...)
## S3 method for class 'keyed_df'
slice(.data, ...)
.data, data, x |
A keyed object. |
... |
Appropriate arguments for functions. |
.keep_all |
Parameter for dplyr::distinct. |
.by_group |
Parameter for dplyr::arrange. |
dplyr::transmute()
is supported implicitly with dplyr::mutate()
support.
dplyr::rowwise()
is not supposed to be generic in dplyr
. Use
rowwise.keyed_df
directly.
All scoped variants of present functions are also supported.
Two-table verbs
mtcars %>% key_by(vs, am) %>% dplyr::mutate(gear = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.