reorderCols: reorder the columns of an antaresDataTable

Description Usage Arguments Value Examples

View source: R/reorderCols.R

Description

reorderCols() reorders the columns of an antaresDataTable. It puts first the ID columns then the value columns.

Usage

1

Arguments

x

Object of class antaresDataTable or data.table.

Value

The function modifies by reference the order of the columns of its input. For convenience it invisibly returns the modified input.

Examples

1
2
3
4
5
require(data.table)

mydata <- data.table(LOAD = rexp(5), timeId = 1:5, BALANCE = rnorm(5))
reorderCols(mydata)
names(mydata)

rte-antares-rpackage/antaresDev documentation built on May 17, 2019, 5:53 p.m.