tbl_vars.DataFrame: List variables provided by a tbl.

View source: R/dplyr.R

tbl_vars.DataFrameR Documentation

List variables provided by a tbl.

Description

tbl_vars() returns all variables while tbl_nongroup_vars() returns only non-grouping variables. The groups attribute of the object returned by tbl_vars() is a character vector of the grouping columns.

Usage

## S3 method for class 'DataFrame'
tbl_vars(x)

Arguments

x

A tbl object

Value

all variables, with a groups attribute when grouped.

See Also

group_vars() for a function that returns grouping variables.


jonocarroll/DFplyr documentation built on Oct. 16, 2024, 4:56 a.m.