Description Usage Arguments Value
View source: R/interpolate_values.R
Interpolates values to a daily time step given start and end date of desired timeseries. Can summarize at a larger time step (e.g., monthly) if desired using final_dt flag.
1 2 3 4 5 6 7 8 | interpolate_values(
df,
group_vars,
val_var,
start_date,
end_date,
final_dt = "day"
)
|
df |
data frame with water chemistry information for tracer/solute. Includes: * **date:** date of measurement * **group1 and/or group2:** grouping for measurements * **value:** value of measurement |
group_vars |
name of group1 and/or group2 columns, for identifying and renaming them. |
val_var |
name of value column, for identifying and renaming it |
start_date |
start date of interpolated timeseries (POSIX). If earlier than earliest date in df, values before earliest date in df will have value equal to earliest date in df. |
end_date |
end date of interpolated timeseries (POSIX). If later than latest date in df, values after latest date in df will have value equal to latest date in df. |
final_dt |
unit of time to use for interpolation. Defaults to "day", can
also be "month". Used as the |
df, a data frame with interpolated values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.