Learn R Programming

climate (version 1.4.1)

meteo_shortening_imgw: Shortening column names for meteorological variables

Description

Shortening column names of meteorological parameters to improve the readability of downloaded dataset from the danepubliczne.imgw.pl collection and removing duplicated column names

Usage

meteo_shortening_imgw(data, remove_duplicates = TRUE)

Value

data.frame with short English names of meteorological parameters. Existing column attributes, including the original IMGW label metadata, are preserved.

Arguments

data

downloaded dataset with original column names

remove_duplicates

whether to remove duplicated column names (default TRUE - i.e., columns with duplicated names are deleted)

Examples

Run this code
# \donttest{
  monthly = meteo_imgw("monthly", rank = "climate", year = 1969)
  
  abbr = meteo_shortening_imgw(data = monthly, remove_duplicates = TRUE)
  head(abbr)
# }

Run the code above in your browser using DataLab