vars_in_expression: Extract variable names used in logical expression

Description Usage Arguments Value Examples

Description

The left part of possibly concatenated logical expressions are extracted. Use is intended for variable names in dataframes. Alphanumerics, dots and underscores are allowed as variable names.

Usage

1

Arguments

e

Logical expression as a string or wrappd in plyr::. function.

Value

A character vector containing the variable names.

Examples

1
vars_in_expression(.(a.1==1 & b==2))

markheckmann/mapster documentation built on May 21, 2019, 12:06 p.m.