hydro_shortening_imgw {climate} | R 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, 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) |
Value
data.frame with shorten names of hydrological parameters
Examples
monthly = data = hydro_imgw("monthly", year = 1969, col_names = "polish")
if (is.data.frame(monthly)) {
abbr = hydro_shortening_imgw(data = monthly,
col_names = "full",
remove_duplicates = TRUE)
head(abbr)
}
[Package climate version 1.2.3 Index]