tbl_vars() returns all variables while tbl_nongroup_vars() returns only non-grouping variables.

tbl_vars(x)

tbl_nongroup_vars(x)

Arguments

x

A tbl object

See also

group_vars() for a function that returns grouping variables.