View source: R/outbreak_velocity.R
Calculates the front-wave velocity of an outbreak
1 2 | outbreak_velocity(ds, max.order = 10, measure = "r2",
manual.order = FALSE)
|
ds |
Dataframe providing the date of outbreak and X and Y coordinates |
max.order |
Integer of highest order polynomial to attempt; defaults to 10 |
measure |
The measure of model fit, defaults to R-squared: 'r2', can be AIC: 'aic' or BIC: 'bic' |
manual.order |
If TRUE, the max.order integer is the polynomial model used, regardless of best fit measures; defaults to FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.