Learn R Programming

jwutil (version 1.1.1)

stripForFormula: strip a string so that it can be used as a variable name in a formula.

Description

This excludes many symbols, so just strip all symbols leaving alphanumeric, and no whitespace.

Usage

stripForFormula(x)

Arguments

x

character vector of potential formula variables

Value

character vector of length x