Description Usage Arguments Value Examples
Combine sediment tables via an operation, e.g. addition or multiplication.
1 2 | operate_sediment(..., fun, partial = FALSE, time.col = "Time",
grain.col = "GrainClass")
|
... |
Arbitrary number of wide-format data tables to combine. |
fun |
A function to apply. If multiple tables are supplied in |
partial |
If TRUE, only the overlapping times and columns will be processed. |
time.col |
The time column name. |
grain.col |
the grain class column name. |
A single sediment table.
1 2 3 4 5 6 7 8 | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
package = "RAStestR")
quasi.voloutcum = read_sediment(simple.quasi, "Vol Out Cum")
operate_sediment(quasi.voloutcum, quasi.voloutcum, fun = "+")
operate_sediment(quasi.voloutcum, quasi.voloutcum, fun = "-")
operate_sediment(quasi.voloutcum, fun = function(x) 2*x)
operate_sediment(quasi.voloutcum, fun = function(x) x*x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.