nest_subset | R Documentation |
nest_subset() takes as input a 'tbl' and returns a nested 'tbl' according to only selected-column-related columns
nest_subset(.data, ..., .exclude = NULL, .names_sep = NULL)
## S3 method for class 'spec_tbl_df'
nest_subset(.data, ..., .exclude = NULL, .names_sep = NULL)
## S3 method for class 'tbl_df'
nest_subset(.data, ..., .exclude = NULL, .names_sep = NULL)
.data |
A 'tbl' |
... |
The name of the columns of interest |
.exclude |
Column name. It is the column\(s\) that you might want to exclude from the subset. |
.names_sep |
Deprecated by tidyr |
maturing
This function extracts only selected-column-related information for downstream analysis (e.g., visualisation). It is disruptive in the sense that it cannot be passed anymore to nanny function.
A 'tbl' object
A 'tbl' object
A 'tbl' object
nest_subset(mtcars_tidy,data = -car_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.