Description Usage Arguments Value Examples
View source: R/conversion_functions.R
This function will convert a idd-formatted file to standard APL model output, and optionally, save as a new file in same path
1 | convert_idd_file_to_standard_format(fname, writefile = F, useCases = T)
|
fname |
string path to filename to convert |
writefile |
default is FALSE, use TRUE to write to file (in same path) |
useCases |
default is TRUE. This will look specifically at "confirmed" and "cum_confirmed" as the columns to be used for confirmed cases (previously, the package looked by default as infections and cum_infections, which were then manipulated to estimate confirmed cases, for example, using the hospscalar parameter in plotting functions) |
Either returns the converted data frame if writefile=FALSE, otherwise, returns the name of the newly written file
1 2 | convert_idd_file_to_standard_format("iddfile.csv")
convert_idd_file_to_standard_format("iddfile.csv", writefile=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.