R/01-as.data.frame.R

Defines functions as.data.frame.sim_setup

Documented in as.data.frame.sim_setup

#' as.data.frame method for sim_setup
#' 
#' Use this method to get a single simulated data.frame out of a sim_setup object.
#' 
#' @param x a sim_setup
#' @param row.names will have no effect
#' @param optional will have no effect
#' @param ... will have no effect
#' 
#' @export
#' @method as.data.frame sim_setup
as.data.frame.sim_setup <- function(x, row.names = NULL, optional = FALSE, ...) {
  sim_run_once(x) %>% as.data.frame(row.names = row.names, optional = optional, ...)
}

Try the saeSim package in your browser

Any scripts or data that you put into this service are public.

saeSim documentation built on Feb. 7, 2022, 5:07 p.m.