Learn R Programming

nonmemica (version 0.8.1)

shuffle: Move the Columns of a Data Frame Relative to Each Other

Description

Move the columns of a data.frame relative to each other.

Usage

shuffle(x, who, after = NA, ...)

Arguments

x

data.frame

who

a character vector of column names to move, or a logical vector of length names(x), or a vector of indices

after

column after which to put who: may be character, integer, NA, or NULL

...

ignored

Value

data.frame