Description Usage Arguments Value Examples
Accumulate data from a table over time and/or longitudinally.
1 2 | cumulative_table(d, time.col = "Time", over.time = TRUE,
longitudinal = TRUE, direction = c("upstream", "downstream"))
|
d |
A wide-format table containing values to accumulate. |
time.col |
The time 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.
1 2 3 4 5 6 7 8 | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
package = "RAStestR")
quasi.flow = read_standard(simple.quasi, "Flow")
cumulative_table(quasi.flow, over.time = TRUE, longitudinal = FALSE)
cumulative_table(quasi.flow, over.time = TRUE, longitudinal = TRUE)
cumulative_table(quasi.flow, over.time = TRUE, longitudinal = TRUE,
direction = "downstream")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.