Describe attributes of a tm vector
Arguments
- x
A vector
tmobjects- property
A character vector of the following attributes of a
tmobject: role, side, label, group, description, type, distribution
Value
A list of term = property pairs, where the term is the name of the
element (e.g. could be the `role' of the term).
Examples
f <- .o(output) ~ .x(input) + .m(mediator) + random
t <- tm(f)
describe(t, "role")
#> $output
#> [1] "outcome"
#>
#> $input
#> [1] "exposure"
#>
#> $mediator
#> [1] "mediator"
#>
#> $random
#> [1] "predictor"
#>