get_eq_names: get equations' names for a set of them

Description Usage Arguments Value Methods (by class) Examples

View source: R/get_eq_names.R

Description

Extract the equation(s) name(s) from bags of equations (objects of class eqs)

Usage

1
2
3
4
get_eq_names(x)

## S3 method for class 'eqs'
get_eq_names(x)

Arguments

x

the object

Value

(chr) set of names for the equations in x

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(equationer)
eq_test <- eq(age = 0.1, bmi = -0.3,
    name    = "eq_test",
    outcome = "kcal/day",
    strata = list(sex = "female")
)
eq2_test <- eq(age = 0.1, bmi = -0.3,
    name    = "eq2_test",
    outcome = "kcal/day",
    strata = list(sex = "male")
)

eqs_test <- eqs(eq_test, eq2_test, name = "eqs-test")
get_eq_names(eqs_test)

UBESP-DCTV/equationer documentation built on Jan. 17, 2021, 6:30 p.m.