weather_to_xml: Convert weather data to XML

Description Usage Arguments Value Examples

View source: R/weather_to_xml.R

Description

This function aims to convert weather data from data a frmae to XML format.

Usage

1
weather_to_xml(weather_data, file = NULL)

Arguments

weather_data

a data frame of historical weather data.

file

[chr] (default is NULL) if provided as "path/to/xml/output/xml" the function write the XML in this file (note: folder must be exists).

Value

an (invisible) XML document

Examples

1
2
3
4
5
6
7
8
9
library(imthcm)
## Not run: 
  data(test_weather)
  xml_weather <- 'test_weather.xml'
  weather_to_xml(test_weather, file = xml_weather)
  weather_history <- xml_to_weather(file = xml_weather)
  identical(weather_history, test_weather)

## End(Not run)

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