mnlfa_expand_to_list {mnlfa} | R Documentation |
Expands Input Into a List
Description
Expands an input into a list.
Usage
mnlfa_expand_to_list(x, names_list)
Arguments
x |
An R object |
names_list |
Names of the list |
Value
A list
Examples
#############################################################################
# EXAMPLE 1: Test example
#############################################################################
formula_int <- ~1+female+age
items <- paste0("I",1:12)
formula_int <- mnlfa::mnlfa_expand_to_list(x=formula_int, names_list=items)
formula_int[[1]] <- ~0
[Package mnlfa version 0.3-4 Index]