Kmodel_allply | R Documentation |
The model will predict daily K estimates from preliminary daily K estimates. Called from metab_Kmodel().
Kmodel_allply(
data_daily_all,
engine,
weights,
predictors,
transforms,
other_args
)
data_daily_all |
data to use as input, with columns including K600.daily.obs, weight, and any predictors |
engine |
The software or function to use in fitting the model. Should be
specified via |
weights |
For Kmodel, character vector indicating the type of weighting to use. Set to c() for no weights. One of c("1/CI", "K600/CI", c()). |
predictors |
For Kmodel, character vector of variables (column names in data or data_daily) to use in predicting K. Leave blank or set to c() for no predictors. Otherwise, one or more of these may be included: c("date", "velocity.daily", "discharge.daily"). |
transforms |
For Kmodel, a named character vector of names of functions
(probably 'log' or NA) to apply to K600.daily and/or the predictors. K600.daily should
probably be logged. The vector names must match the values of
|
other_args |
Other arguments passed to the fitting function given by
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.