findID | R Documentation |
Identify DWD weather station ID from station name
findID(
name = "",
exactmatch = TRUE,
mindex = metaIndex,
failempty = FALSE,
quiet = rdwdquiet()
)
name |
Char: station name(s) that will be matched in |
exactmatch |
Logical: Should |
mindex |
Single object: Index used to select |
failempty |
Logical: fail if no matching names are found
(instead of returning NA with a warning)?
With the latter, |
quiet |
Logical: suppress length warnings? DEFAULT: FALSE through |
Character string (vector) with ID(s)
Berry Boessenkool, berry-b@gmx.de, Oct-Nov 2016
used in selectDWD()
, metaInfo()
# Give weather station name (must be existing in metaIndex):
findID("Potsdam")
findID("potsDam") # capitalization is ignored
# all names containing "Hamburg":
findID("Hamburg", exactmatch=FALSE)
findID("Potsdam", exactmatch=FALSE)
# vectorized:
findID(c("Potsdam","Berlin-Buch"))
# German Umlauts are changed to ue, ae, oe, ss
findID("Muenchen", FALSE)
berryFunctions::convertUmlaut("M?nchen") # use this to convert umlauts in lists
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.