yr: Function to retrieve and parse the xml forecast data from...

Description Usage Arguments Examples

View source: R/yr.R

Description

Function to retrieve and parse the xml forecast data from YR.no

Usage

1
2
  yr(xml_url = "http://www.yr.no/place/Denmark/Central_Jutland/Aarhus/forecast.xml",
  return_location = FALSE)

Arguments

xml_url

the url pointing to the xml file.

return_location

Boolean. If false it returns only the tidy data.frame of forecast data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
library(dplyr)
library(yrno)

aarhus <- "http://www.yr.no/place/Denmark/Central_Jutland/Aarhus/forecast.xml"
cph <- "http://www.yr.no/sted/Danmark/Hovedstaden/K<c3><b8>benhavn/varsel_time_for_time.xml"

yr(aarhus)
yr(cph)

## End(Not run)

krose/yrno documentation built on May 20, 2019, 6:42 p.m.