randomise_data: data set shuffling tool

Description Usage Arguments Value Author(s) See Also Examples

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')

Example output

Loading required package: sp
Loading required package: raster
Loading required package: parallel
Loading required package: reshape
Loading required package: ggplot2
biomod2 3.3-7.1 loaded.

Type browseVignettes(package='biomod2') to access directly biomod2 vignettes.
    a  b  c
1   1 14 21
2   2 16 22
3   3 13 23
4   4 20 24
5   5 11 25
6   6 17 26
7   7 12 27
8   8 19 28
9   9 15 29
10 10 18 30

biomod2 documentation built on May 2, 2019, 5:08 p.m.