get_vars: Get the names from a dataframe that match a pattern.

Description Usage Arguments

View source: R/get_vars.R

Description

Get the names from a dataframe that match a pattern.

Usage

1
get_vars(df, pattern, collapse = FALSE, ...)

Arguments

df

dataframe. The dataframe to search the names of.

pattern

character. The pattern or patterns to search for.

collapse

logical. When using multiple patterns, whether to return as one list (collapse = TRUE) or as multiple lists (FALSE, default).

...

list. Additional arguments to send to grep.


peterhurford/surveytools2 documentation built on Feb. 18, 2021, 9:13 p.m.