Usage
Rsampling(type = c("normal_rand", "rows_as_units", "columns_as_units", "within_rows", "within_columns"), dataframe, statistics, ntrials = 10000, simplify = TRUE, progress = "text", fix.zeroes = FALSE, ...)
Arguments
dataframe
a dataframe with the data to be shuffled or resampled.
statistics
a function that calculates the statistics of interest from the dataframe.
The first argument should be the dataframe with the data and preferably should
return a (named) vector, data frame, matrix or array.
ntrials
integer; number of randomizations to perform.
simplify
logical; should the result be simplified
to a vector, matrix or higher dimensional array if possible?
progress
which kind of progress bar should be used (currently unimplemented!)
fix.zeroes
logical; for normal_rand, within_rows or within_columns, should zeroes in the dataframe
be kept in place? See the help on zfsample for more details. ...
further arguments to be passed to the randomization functions
(e.g., cols, replace, stratum).