Learn R Programming

rdwd (version 1.8.0)

newColumnNames: Enhance readDWD column names

Description

Add short German parameter descriptions to the DWD abbreviations. This uses dwdparams() to create column names like "TT_TU.Lufttemperatur" and "RSK.Niederschlagshoehe." Column names not in the abbreviation list will be left untouched.

Usage

newColumnNames(dataframe, variables = dwdparams, separator = ".")

Value

The dataframe with new column names

Arguments

dataframe

Dataframe as returned by readDWD.data()

variables

Dataframe as returned by readVars() for a single file. Rownames must be variable abbreviations. There must be a "Kurz" column. DEFAULT: dwdparams

separator

Separator between abbreviation and long name. DEFAULT: "."

Author

Berry Boessenkool, berry-b@gmx.de, Apr 2019

See Also

dwdparams, readVars(), readDWD() argument varnames, newColumnNames()

Examples

Run this code
# mainly for internal usage

Run the code above in your browser using DataLab