sort_sims: Sort the simulation file order in an object

View source: R/sort_sims.R

sort_simsR Documentation

Sort the simulation file order in an object

Description

Sort the simulation file order in an object

Usage

sort_sims(which_object, sim_order)

Arguments

which_object

the R object for which you want to sort simulation files

sim_order

what should the simulation file order be? 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. Note that this means that "File" must be a column in the data.frames. If it is not, the object will be returned without any sorting. If any simulation files were omitted from sort_order, they will be included at the end in the same order they originally appeared.

Value

the R object with all simulations sorted.

Examples

Details <- sort_sims(which_object = Details,
                     sim_order = c("file 1.xlsx", "file 2.xlsx"))



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