Description Usage Arguments Value Examples
Accumulate data from a sediment table over time and/or longitudinally.
1 2 3  | cumulative_sediment(d, time.col = "Time", grain.col = "GrainClass",
  over.time = TRUE, longitudinal = TRUE, direction = c("upstream",
  "downstream"))
 | 
d | 
 A wide-format table containing values to accumulate.  | 
time.col | 
 The time column name.  | 
grain.col | 
 the grain class column name.  | 
over.time | 
 If   | 
longitudinal | 
 If   | 
direction | 
 Accumulate data in the downstream (descending order of cross
section IDs) or upstream (ascending order) direction. Ignored if
  | 
A data frame containing the accumulated data from d. Note
that d may be reordered in time and by cross-section and grain
class.
1 2 3 4 5 6  | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
  package = "RAStestR")
quasi.voloutcum = read_sediment(simple.quasi, "Vol Out Cum")
cumulative_sediment(quasi.voloutcum, over.time = FALSE)
cumulative_sediment(quasi.voloutcum, direction = "downstream")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.