todo-files/permutate.R

#' Simple wrapper function for sample.
#'
#' One more function call necessary, but as a result the code
#' is much more read friendly.
#'
#' @param x [\code{vector}]\cr
#'   Source vector.
#' @return [\code{vector}]
#'   Source vector with permutated elements.
#' @export
permutate = function(x) {
  return(sample2(x, size = length(x)))
}
berndbischl/BBmisc documentation built on Jan. 6, 2023, 12:32 p.m.