Description Usage Arguments Details Value Examples
Compute cross section lengths from the river station lengths table.
1 | xs_lengths(station.lengths, stations = NULL, station.col = "Station")
|
station.lengths |
A data frame containing station lengths, i.e. output
of |
stations |
A list of stations to compute lengths for. |
station.col |
The column in |
The cross section length is computed as the average of the current river station channel length and the upstream river station channel length; in other words, the cross section control volume is assumed to extend half the channel distance between the next upstream and downstream cross sections.
a dataframe with columns "Station" and "Length", where column "Length" lists the cross section length.
1 2 3 4 5 6 7 8 9 | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
package = "RAStestR")
quasi.lengths = read_station_lengths(simple.quasi)
xs_lengths(quasi.lengths)
xs_lengths(quasi.lengths, head(quasi.lengths$Station))
xs_lengths(quasi.lengths, tail(quasi.lengths$Station))
xs_lengths(quasi.lengths,
quasi.lengths$Station[seq(1, nrow(quasi.lengths), 2)])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.