R/resample.r

Defines functions resample

Documented in resample

#' Sampling parameter vectors function
#' 
#' \code{nncalc} is a wrapper for the AMORE package functions
#' 
#' @param x vector to sample from
#' @param n number of samples to draw from x
#' @param ... other arguments to pass to sample.int
#' @return results of training an ANN
resample <- function(x, n, ...)
{
  x[sample.int(length(x), size=n, ...)]
}
rogiersbart/RGLUEANN documentation built on June 4, 2024, 9:53 a.m.