Description Usage Arguments Examples
View source: R/plotting_functions.R
This function allows for accepting model data frames with alternative names for inf, death. A dataframe, a column type, and its possible alternative names are provided; if one and only one of the alternatives is found, it is accepted and converted to the column type inf or deaths
1 | std_model_col_names(dt, coltype, valid_names, ignore_error = F)
|
dt |
data frame of model data |
coltype |
an unquoted column type, inf or deaths |
valid_names |
possible names |
ignore_error |
In general, one and only one valid column name should be found; if this is not the case, the error will be ignored by default, unless this parameter is set to TRUE |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.