Learn R Programming

sdcMicro (version 5.6.1)

argus_rankswap: argus_rankswap

Description

argus_rankswap

Usage

argus_rankswap(df, perc)

Value

a list with two elements

  • original: the originally provided input data

  • swapped: the data.frame containing the swapped values

Arguments

df

a data.frame with only numerical columns

perc

a number defining the swapping percantage

See Also

Examples

Run this code
mat <- matrix(sample(1:100, 50, replace=TRUE), nrow=10, ncol=5)
df <- as.data.frame(mat)
res <- argus_rankswap(df, perc=10)

Run the code above in your browser using DataLab