Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Damien Georges

See Also

Examples

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

biomod2

Ensemble Platform for Species Distribution Modeling

v3.4.6
GPL-2
Authors
Wilfried Thuiller [aut, cre], Damien Georges [aut, cre], Robin Engler [aut], Frank Breiner [aut]
Initial release
2020-02-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.