R/meteo_shortening_imgw.R
meteo_shortening_imgw.RdShortening column names of meteorological parameters to improve the readability of downloaded dataset from the danepubliczne.imgw.pl collection and removing duplicated column names
meteo_shortening_imgw(data, col_names = "short", remove_duplicates = TRUE)downloaded dataset with original column names
three types of column names possible: "short" - default, values with shorten names, "full" - full English description, "polish" - original names in the dataset
whether to remove duplicated column names (default TRUE - i.e., columns with duplicated names are deleted)
data.frame with modified names of meteorological parameters
# \donttest{
monthly = meteo_imgw("monthly", rank = "climate", year = 1969)
#> Your system locale is: C.UTF-8 which may cause trouble.
#> Please consider changing it manually while working with climate, e.g.:
#> Sys.setlocale(category = 'LC_ALL', locale = 'en_US.UTF-8')
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/klimat/k_m_d_format.txt
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/klimat/k_m_t_format.txt
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/klimat/
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/klimat/1966_1970/1966_1970_m_k.zip
#> Potential error(s) found. Problems with downloading data.
#>
Run function with argument allow_failure = FALSE to see more details
abbr = meteo_shortening_imgw(data = monthly,
col_names = "full",
remove_duplicates = TRUE)
head(abbr)
#> NULL
# }