use_mget: Return a list of named objects from parent environment

Description Usage Arguments Value

View source: R/summarize.R

Description

This function is an example of a summary function that can be passed to simrabid. If passing to the summary_fun arg in simrabid, it will be called with no arguments, so all arguments must have a default or be empty. This is also a useful helper function for writing your own summary functions, just wrap it in list2env and set envir_num to the parent environment frame number where the objects you're looking for are (see the source for check_sim for an example).

Usage

1
use_mget(names = c("I_dt", "I"), envir_num = 1)

Arguments

names

character vector of object names in parent environment

Value

a list of objects from simrabid specified in names


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.