eval_arg: Standard way to evaluate arguments for class-creating...

Description Usage Arguments Details

View source: R/zzz.R

Description

This approach enables users to specify arguments as quoted strings referencing column names (passes the first try, passes the second try), as unquoted column names evaluated via rlang's NSE (fails the first try, passes the second try), or as pure values (passes the first try, fails the second try).

Usage

1
eval_arg(data, arg)

Arguments

data

The data frame to try retrieving values from.

arg

The argument to evaluate.

Details

If the user provides an unquoted string that does not correspond to a column, this function returns NULL.


mikemahoney218/mvdf documentation built on May 7, 2021, 11:46 a.m.