tbl_vars: List variables provided by a tbl.

View source: R/tbl.R

tbl_varsR 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

tbl_vars(x)

tbl_nongroup_vars(x)

Arguments

x

A tbl object

See Also

group_vars() for a function that returns grouping variables.


dplyr documentation built on Nov. 17, 2023, 5:08 p.m.