colsToFront: colsToFront

Description Usage Arguments Details Value Author(s) Examples

View source: R/ColumnReorder.r

Description

Moves column names to the fron or back of the names

Usage

1
2
3

Arguments

data

data.frame or tbl

cols

Columns that should be moved

Details

Moves column names to the fron or back of the names

Value

Character vector of column names

Author(s)

Jared P. Lander

Examples

1
2
3
4
5
6
7
theDF <- data.frame(A=1:10, B=11:20, C=1:10, D=11:20)
colsToFront(theDF, c('B', 'C'))
colsToFront(theDF, c('C', 'B'))
colsToFront(theDF, c('C', 'C'))
colsToBack(theDF, c('C', 'C'))
colsToBack(theDF, c('C', 'B'))
colsToBack(theDF, c('C', 'C'))

useful documentation built on May 19, 2017, 11:32 p.m.

Search within the useful package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.