Learn R Programming

biomod2 (version 3.4.6)

randomise_data: data set shuffling tool

Description

This function is wrapper to shuffle elegantly data-set. This function shuffle selected columns of a given data.set according to a defined shuffling algorithm.

Usage

randomise_data(data,variable,method)

Arguments

data

a data.frame you want to shuffle

variable

the variables names or columns id you want to shuffle

method

the randomisation method (only 'full_rand' available yet)

Value

a data.frame with selected columns shuffled compared to the original table.

See Also

variables_importance, full_suffling

Examples

Run this code
# NOT RUN {
xx <- data.frame(a=1:10,b=11:20,c=21:30)
randomise_data(data=xx, variable='b', method='full_rand')
# }

Run the code above in your browser using DataLab