Description Usage Arguments Value Examples
Compute a difference table.
1 2 | difference_table(d1, d2, relative = FALSE, partial = FALSE,
difference.col = "Difference", time.col = "Time")
|
d1 |
The first dataframe, considered the "base" result. |
d2 |
The second dataframe, considered the "new" result. |
relative |
Logical: report differences as relative difference. |
partial |
If TRUE, only the overlapping times and columns will be processed. |
difference.col |
The name of the difference column to be created. |
time.col |
The time column name. |
A dataframe, with difference defined as d2- d1
.
if relative = TRUE
, the difference is defined as
(d2 - d1)/(0.5*(d2 + d1))
.
1 2 3 4 5 6 7 8 9 | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
package = "RAStestR")
quasi.flow = read_standard(simple.quasi, "Flow")
difference_table(quasi.flow, quasi.flow)
quasi.double = operate_table(quasi.flow, fun = function(x) 2*x)
difference_table(quasi.flow, quasi.double)
difference_table(quasi.flow, quasi.double, relative = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.