Description Usage Arguments Value Examples
Combine data tables into a single table. The tables must have
identical column names. For data sourced from plans with different
geometry or stations, use to_longtable
to format the tables
consistently before combining. If combining tables of different
data, provide explicit names to the tables to easily differentiate
between variables.
1 | combine_data(..., data.list, id.col = "table")
|
... |
Series of named tables to combine. |
data.list |
Alternative input to |
id.col |
The name of the new column containing data source IDs. |
A single data table with an additional column specifying the data source.
1 2 3 4 5 6 7 | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
package = "RAStestR")
quasi.flow = read_standard(simple.quasi, "Flow")
quasi.wse = read_standard(simple.quasi, "Water Surface")
long.flow = to_longtable(quasi.flow, "Value")
long.wse= to_longtable(quasi.flow, "Value")
combine_data(flow = long.flow, wse = long.wse, id.col = "Variable")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.