Learn R Programming

manymodelr (version 0.3.9)

get_this: Helper function to easily access elements

Description

Helper function to easily access elements

Usage

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

Run this code
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")

Run the code above in your browser using DataLab