meteo_shortening: Shortening column names for meteorological variables

Description Usage Arguments Examples

View source: R/meteo_shortening.R

Description

Shortening column names of meteorological parameters to improve the readability of downloaded dataset and removing duplicated column names

Usage

1
meteo_shortening(data, col_names = "short", remove_duplicates = TRUE)

Arguments

data

downloaded dataset with original column names

col_names

three types of column names possible: "short" - default, values with shorten names, "full" - full English description, "polish" - original names in the dataset

remove_duplicates

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

Examples

1
2
3
4
  monthly <- meteo_monthly(rank = "climate", year = 1969)
  colnames(monthly)
  abbr <- meteo_shortening(data = monthly, col_names = "short", remove_duplicates = TRUE)
  head(abbr)

imgw documentation built on March 26, 2020, 7:37 p.m.