nest_subset-methods: Nest according to selected-column-wise information

nest_subsetR Documentation

Nest according to selected-column-wise information

Description

nest_subset() takes as input a 'tbl' and returns a nested 'tbl' according to only selected-column-related columns

Usage

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)

Arguments

.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

Details

\lifecycle

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.

Value

A 'tbl' object

A 'tbl' object

A 'tbl' object

Examples


nest_subset(mtcars_tidy,data = -car_model)



stemangiola/nanny documentation built on July 29, 2023, 1:23 a.m.