permute_df: Permute a data set

View source: R/permutation.R

permute_dfR Documentation

Permute a data set

Description

permute_df() permutes a data set: it randomizes the order within each variable, which breaks any association between them. Permutation is useful for testing against null statistics.

Usage

permute_df(.data)

Arguments

.data

a data.frame

Value

a permuted data.frame

Examples

permute_df(iris)

USCbiostats/partition documentation built on Feb. 3, 2024, 3:38 a.m.