Description Usage Arguments Value Examples
View source: R/xml_to_prediction.R
Read an XML predicted data
1 |
file |
[chr] path to the XML predicted file to import (e.g. the output of hm.R) |
a data frame of predicted data
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.