order_table: Order Table

Description Usage Arguments Value Examples

Description

Reorder a table by time and cross section.

Usage

1
order_table(d, time.col = "Time")

Arguments

d

A wide-format table.

time.col

The time column name.

Value

the data frame d, ordered by time and cross section.

Examples

1
2
3
4
5
6
simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
  package = "RAStestR")
quasi.flow = read_standard(simple.quasi, "Flow")

quasi.disordered = quasi.flow[sample(1:nrow(quasi.flow), nrow(quasi.flow)),]
order_table(quasi.disordered)

mkoohafkan/RAStestR documentation built on July 14, 2019, 11:41 p.m.