cleanUpFormula: Massage a provided vector of intended model character strings...

Description Usage Arguments Details Value Author(s) References

View source: R/cleanUpFormula.R

Description

Massage a provided vector of intended model character strings into the format necessary for a formula-class object.

Usage

1

Arguments

var

The character vector of data intended to be used and formatted as "clean" formula strings (as least in terms of the R-object formula-class.)

Details

As coded here, the out object is assumed to possible contain a "hyphen," serving as a minus sign, as well as commas, due to typical syntax involving fits against the binomial family and associated cbind usage. It is possible that the syntax of replacement steps performed here is not ideal for your situation.

Value

The original character vector var with slashes "/" replaced with a single underscore "_," hyphens "-" replaced with a double underscore "__," and commas "," replaced with a triple underscore "___."

Author(s)

WEST, Inc.

References

Wilkinson G.N., and Rogers C.E. (1973). "Symbolic Description of Factorial Models for Analysis of Variance." Applied Statistics, 22, 392-399


studyvin/pollinatorAttractiveness documentation built on Dec. 23, 2021, 6:38 a.m.