Learn R Programming

fold (version 0.2.6)

obj_attr.character: Infer Object Attribute Relationships from Character

Description

Infers object ~ attribute relationships from character.

Usage

# S3 method for character
obj_attr(x, ...)

Arguments

x

character

...

passed arguments

Value

a named list of formulas in the form object ~ attribute

Details

Character is, for example, the names of a data.frame. Processes the names, splitting on underscore and converting to formulas, with names same as the values in x that contained any underscores.

See Also

obj_attr