Learn R Programming

tern (version 0.9.9)

get_covariates: Utility function to return a named list of covariate names

Description

[Stable]

Usage

get_covariates(covariates)

Value

A named list of character vector.

Arguments

covariates

(character)
a vector that can contain single variable names (such as "X1"), and/or interaction terms indicated by "X1 * X2".

Examples

Run this code
get_covariates(c("a * b", "c"))

Run the code above in your browser using DataLab