Description Usage Arguments Value Examples
View source: R/predictions_to_xml.R
This function aims to convert prediction from Health Module to XML format
1 | predictions_to_xml(pred, file = NULL)
|
pred |
a dataframe of prediction, i.e. a output from
|
file |
[chr] (default is NULL) if provided as
|
an (invisible) XML document
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(imthcm)
default_models <- train_event_models(use_ita = TRUE)
pred <- predict_hm(default_models,
test_weather, test_weather[c(730L, 731L), ]
)
predictions_to_xml(pred, file = 'predictions.xml')
imported_pred <- xml_to_prediction(file = 'predictions.xml')
identical(pred, imported_pred)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.