Description Usage Arguments Value Examples
reorderCols()
reorders the columns of an antaresDataTable
. It puts first
the ID columns then the value columns.
1 | reorderCols(x)
|
x |
Object of class |
The function modifies by reference the order of the columns of its input. For convenience it invisibly returns the modified input.
1 2 3 4 5 | require(data.table)
mydata <- data.table(LOAD = rexp(5), timeId = 1:5, BALANCE = rnorm(5))
reorderCols(mydata)
names(mydata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.