get_this: Helper function to easily access elements

Description Usage Arguments Details Examples

Description

Helper function to easily access elements

Usage

1
get_this(where = NULL, what = NULL)

Arguments

where

Where do you want to get it from? Currently only supports 'list's and 'data.frame'objects.

what

What do you want to extract from the 'data.frame' or 'list'? No quotes. See examples below.

Details

This is a helper function useful if you would like to extract data from the output of 'multi_model_1'.

Examples

1
2
3
4
5
my_list<-list(list(A=520),list(B=456,C=567))
get_this(what="A",my_list)
get_this(my_list,"C")
# use values
get_this(my_list, "B")

manymodelr documentation built on Nov. 15, 2021, 5:07 p.m.