order_sediment: Order Table (Sediment)

Description Usage Arguments Value Examples

Description

Reorder a sediment data table by time and cross section.

Usage

1
order_sediment(d, time.col = "Time", grain.col = "GrainClass")

Arguments

d

A wide-format table.

time.col

The time column name.

grain.col

the grain class column name.

Value

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

Examples

1
2
3
4
5
6
7
simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
  package = "RAStestR")
quasi.voloutcum = read_sediment(simple.quasi, "Vol Out Cum")

quasi.disordered = quasi.voloutcum[sample(1:nrow(quasi.voloutcum), 
  nrow(quasi.voloutcum)),]
order_sediment(quasi.voloutcum)

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