findID

0th

Percentile

find DWD weather station ID from name

Identify DWD weather station ID from station name

Keywords
character
Usage
findID(name = "", exactmatch = TRUE, mindex = metaIndex,
  quiet = FALSE)
Arguments
name

Char: station name(s) that will be matched in mindex to obtain id. DEFAULT: ""

exactmatch

Logical: Should name match an entry in mindex exactly (be ==)? If FALSE, name may be a part of mindex$Stationsname, as checked with grepl. This is useful e.g. to get all stations starting with a name (e.g. 42 IDs for Berlin). DEFAULT: TRUE

mindex

Single object: Index used to select id if name is given. DEFAULT: rdwd:::metaIndex

quiet

Logical: suppress length warnings? DEFAULT: FALSE

Value

Character string (vector) with ID(s)

See Also

used in selectDWD, metaInfo

Aliases
  • findID
Examples
# NOT RUN {
# 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

# }
Documentation reproduced from package rdwd, version 1.2.0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.