mnlfa_expand_to_list: Expands Input Into a List

Description Usage Arguments Value Examples

Description

Expands an input into a list.

Usage

1
mnlfa_expand_to_list(x, names_list)

Arguments

x

An R object

names_list

Names of the list

Value

A list

Examples

1
2
3
4
5
6
7
8
#############################################################################
# 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

mnlfa documentation built on May 1, 2019, 9:21 p.m.