randomise_data: data set shuffling tool

Description Usage Arguments Value Author(s) See Also Examples

View source: R/variables_importance.R

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

1
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.

Author(s)

Damien Georges

See Also

variables_importance, full_suffling

Examples

1
2
xx <- data.frame(a=1:10,b=11:20,c=21:30)
randomise_data(data=xx, variable='b', method='full_rand')

biomod2 documentation built on May 31, 2017, 2:55 a.m.

Search within the biomod2 package
Search all R packages, documentation and source code