R/simple.sim.R

Defines functions simple.sim

Documented in simple.sim

##' simple sim.
##'
##' Deprecated. Should just use sample or many other means
##' @param no.samples number of samples
##' @param f function to simulate from
##' @param ... passed to f
##' @return a sample
##' @export
simple.sim <- function(no.samples,f,...) {
  sample <-1:no.samples
  for (i in 1:no.samples) {
    sample[i]<-f(...)
  }
  sample
}

Try the UsingR package in your browser

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

UsingR documentation built on March 18, 2022, 7:32 p.m.