hydro_shortening_imgw: Shortening column names for hydrological variables

View source: R/hydro_shortening_imgw.R

hydro_shortening_imgwR Documentation

Shortening column names for hydrological variables

Description

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

Usage

hydro_shortening_imgw(data, remove_duplicates = TRUE)

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)

Value

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

Examples


  monthly = data = hydro_imgw("monthly", year = 1969)
  
  if (is.data.frame(monthly)) {
  abbr = hydro_shortening_imgw(data = monthly, remove_duplicates = TRUE)
  head(abbr)
  }



climate documentation built on Sept. 18, 2026, 5:06 p.m.