Learn R Programming

twidlr (version 0.0.0.9000)

coerce_args: Coerce arguments to right object class

Description

coerce_args is used to ensure that the data and formula arguments provided to twidlr model functions are coerced to a data frame and formula before further processing. This makes it possible for remaining function code to assume these object classes.

Usage

coerce_args(data, formula)

Arguments

data
Object that can be coerced to a data frame
formula
Object that can be coerced to a formula