View source: R/mnlfa_expand_to_list.R
mnlfa_expand_to_list | R Documentation |
Expands an input into a list.
mnlfa_expand_to_list(x, names_list)
x |
An R object |
names_list |
Names of the list |
A list
#############################################################################
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.