filter_sims: Selectively include or omit specific simulations from an R...

View source: R/filter_sims.R

filter_simsR Documentation

Selectively include or omit specific simulations from an R object

Description

Selectively include or omit specific simulations from an R object

Usage

filter_sims(which_object, which_sims, include_or_omit)

Arguments

which_object

the R object for which you want to filter to remove or retain only certain simulation files

which_sims

which simulations are affected? Must be a character vector of the file names exactly as they appear in the column "File" if the object is a data.frame or in the data.frames inside the list if the object is a list

include_or_omit

Do you want to "include" or "omit" these simulations?

Value

the R object with only those simulations if include_or_omit is set to "include" or that R object with those simulations omitted if include_or_omit is set to "omit".

Examples

Details <- filter_sims(which_object = Details, 
                       which_sims = c("file 1.xlsx", "file 2.xlsx"), 
                       include_or_omit = "omit")



shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.