Learn R Programming

tidycomm (version 0.0.1)

grab_vars: Keep existing variables or get all numeric variables

Description

Keeps existing variables if they were specified in the function call or gets an alternative selection of variables if none were specified.

Usage

grab_vars(data, vars, alternative = "numeric")

Arguments

data
vars

Variables passed to function with ..., wrapped in rlang::enquos

alternative

Which variables to grab alternatively if no variables were specified in the function call. Defaults to "numeric".

Value

Variables as symbols