Nest data.tables
Nest data.tables
nest.(.df, ..., .names_sep = NULL)
.df |
A data.table or data.frame |
... |
Columns to be nested. |
.names_sep |
If NULL, the names will be left alone. If a string, the names of the columns will be created by pasting together the inner column names and the outer column names. |
test_df <- data.table( a = 1:10, b = 11:20, c = c(rep("a", 6), rep("b", 4)), d = c(rep("a", 4), rep("b", 6)) ) test_df %>% nest.(data = c(a, b)) test_df %>% nest.(data = where(is.numeric))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.