Learn R Programming

JWileymisc (version 1.4.1)

internalformulaIt: Internal function to create a formula

Description

This function is not intended to be called by users. It creates a formula style character string from its argument. But note that it does not actually create a formula class object. If you do not want an argument, use the empty string.

Usage

internalformulaIt(dv, iv, covariates)

Value

A character string

Arguments

dv

A character string of the dependent variable.

iv

A character string or vector of the independent variables

covariates

A character string or vector of the dependent variables

Examples

Run this code
JWileymisc:::internalformulaIt("mpg", "hp", "am")
JWileymisc:::internalformulaIt("mpg", "hp", "")
JWileymisc:::internalformulaIt("mpg", "", "am")

Run the code above in your browser using DataLab