Learn R Programming

jmvcore (version 2.6.3)

marshalFormula: Marshal a formula into options

Description

Marshal a formula into options

Usage

marshalFormula(formula, data, from = "rhs", type = "vars",
  permitted = c("numeric", "factor"), subset = ":", required = FALSE)

Arguments

formula

the formula

data

a data frame to marshal the data from

from

'rhs' or 'lhs', which side of the formula should be marshalled

type

'vars' or 'terms', the type of the option be marshalled to

permitted

the types of data the option permits

subset

a subset of the formula to marshal

required

whether this marshall is required or not