rdwd (version 1.4.0)

readDWD.data: read regular dwd data

Description

Read regular dwd data. Intended to be called via readDWD().

Usage

readDWD.data(
  file,
  fread = FALSE,
  varnames = FALSE,
  format = NA,
  tz = "GMT",
  quiet = rdwdquiet(),
  ...
)

Arguments

file

Name of file on harddrive, like e.g. DWDdata/daily_kl_recent_tageswerte_KL_03987_akt.zip

fread

Logical: read faster with data.table::fread? When reading many large historical files, speedup is significant. When called from readDWD(), NA can also be used, which means TRUE if data.table is available. DEFAULT: FALSE

varnames

Logical (vector): add a short description to the DWD variable abbreviations in the column names? E.g. change FX,TNK to FX.Windspitze,TNK.Lufttemperatur_Min, see newColumnNames(). DEFAULT: FALSE (for backwards compatibility)

format

Char (vector): Format passed to as.POSIXct() (see strptime()) to convert the date/time column to POSIX time format. If NULL, no conversion is performed (date stays a factor). If NA, readDWD tries to find a suitable format based on the number of characters. DEFAULT: NA

tz

Char (vector): time zone for as.POSIXct(). "" is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). DEFAULT: "GMT"

quiet

Suppress empty file warnings and subfuntion name message? DEFAULT: FALSE through rdwdquiet()

Further arguments passed to read.table() or data.table::fread()

Value

data.frame

See Also

readDWD(), Examples in dataDWD()