colShuffle: Column and row-wise Shuffle

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/permutation_combination.R

Description

Column and row-wise shuffle of a matrix.

Usage

1
2

Arguments

x

A matrix with the data.

Details

The functions is written in C++ in order to be as fast as possible.

Value

A vector with the column/row Shuffle.

Author(s)

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

See Also

Median, colVars, colMeans (buit-in R function)

Examples

1
2
3
4
5
x <- matrix( rnorm(100 * 100), ncol = 100 )
system.time( colShuffle(x) )
system.time( rowShuffle(x) )

x<-NULL

Example output

Loading required package: Rcpp
Loading required package: RcppZiggurat
   user  system elapsed 
  0.000   0.000   0.005 
   user  system elapsed 
  0.000   0.000   0.001 

Rfast documentation built on May 18, 2021, 1:07 a.m.