Helper function to easily access elements

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

my_list<-list(list(A=520),list(B=456,C=567))
get_this(what="A",my_list)
#> [[1]]
#> [1] 520
#> 
get_this(my_list,"C")
#> [[1]]
#> [1] 567
#> 
# use values
get_this(my_list, "B")
#> [[1]]
#> [1] 456
#>