View source: R/discharge-to-stage.R
dtq_discharge_to_stage | R Documentation |
Convert Discharge to Stage
dtq_discharge_to_stage(
x,
r1d,
dtt = "DateTime",
colname = "Discharge",
stage = "Stage",
n = 0L,
rate_down = Inf,
rate_up = rate_down,
units = dtt_units(x[[dtt]])
)
x |
A dts data frame |
r1d |
A data frame of the discharge and stage values for a transect from a 1-dimensional model. |
dtt |
A string specifying the column with the Date or POSIXct values. |
colname |
A character vector specifying the column(s) with the discharge and/or stage data. |
stage |
A string of the name of the column with the stage values. |
n |
A count of the number of time units until the stage responds. |
rate_down |
A positive number of the maximum absolute rate when dropping the discharge. |
rate_up |
A positive number of the maximum rate when increasing the discharge. |
units |
A string of the units. |
The updated dtq data frame with a stage column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.