permute_rows: Permute rows of a matrix

Description Usage Arguments Value

View source: R/utils.R

Description

This is a helper function for multivariate permutation tests, when we must permute multiple variables in lockstep in order to preserve correlations between them and/or to apply NPC.

Usage

1

Arguments

x

A matrix or dataframe, or a list of matrices/dataframes of the same size

Value

The permuted data. If x is a list, the returned list will have the same permutation of rows in each matrix/dataframe.


statlab/permuter documentation built on May 30, 2019, 9:45 a.m.