nest.dtplyr_step {dtplyr} | R Documentation |
Nest
Description
This is a method for the tidyr tidyr::nest()
generic. It is translated
using the non-nested variables in the by
argument and .SD
in the j
argument.
Usage
## S3 method for class 'dtplyr_step'
nest(.data, ..., .names_sep = NULL, .key = deprecated())
Arguments
.data |
A data frame. |
... |
< |
.names_sep |
If |
.key |
Not supported. |
data |
A |
Examples
if (require("tidyr", quietly = TRUE)) {
dt <- lazy_dt(tibble(x = c(1, 2, 1), y = c("a", "a", "b")))
dt %>% nest(data = y)
dt %>% dplyr::group_by(x) %>% nest()
}
[Package dtplyr version 1.3.1 Index]