xml_to_prediction: Read an XML predicted data

Description Usage Arguments Value Examples

View source: R/xml_to_prediction.R

Description

Read an XML predicted data

Usage

1

Arguments

file

[chr] path to the XML predicted file to import (e.g. the output of hm.R)

Value

a data frame of predicted data

Examples

 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)

UBESP-DCTV/imthcm documentation built on Dec. 2, 2019, 9:26 a.m.