Title: | Easy Manipulation of IDEAM's Climatological Data |
---|---|
Description: | Time series plain text conversion and data visualization. It allows to transform IDEAM (Instituto de Hidrologia, Meteorologia y Estudios Ambientales) daily series from plain text to CSV files or data frames in R. Additionally, it is possible to obtain exploratory graphs from times series. IDEAM’s data is freely delivered under formal request through the official web page <http://www.ideam.gov.co/solicitud-de-informacion>. |
Authors: | Luz Maria Morales [aut, cre], Edwin Echeverri [aut], Kenneth Roy Cabrera [aut] |
Maintainer: | Luz Maria Morales <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.0.9 |
Built: | 2025-02-11 03:41:50 UTC |
Source: | https://github.com/cran/ideamdb |
A dataset with fictitious values of no real IDEAM's Stations. The text file keeps IDEAM's text format.
data(Example_IDEAM)
data(Example_IDEAM)
text file
It is a self-made file. Original data could be freely required through IDEAM's web page. http://www.ideam.gov.co/solicitud-de-informacion
data(Example_IDEAM)
data(Example_IDEAM)
Create a data frame with one value by row. The df is available to export as a CSV file
IdeamLong(file, write = FALSE, outfile = "MatrizIdeamLarga")
IdeamLong(file, write = FALSE, outfile = "MatrizIdeamLarga")
file |
IDEAM file path or file name if it is on the working directory |
write |
If True a CSV file is returned to the working directory, otherwise only a data frame is shown |
outfile |
Outfile name that will be saved on the working directory |
dataframe or a CSV file
# Retreive example dataset Example_IDEAM <- system.file("extdata", "Example_IDEAM", package = "ideamdb") # Create a temporal file example.ideam.long <- tempfile() write.csv(IdeamLong(Example_IDEAM), file = example.ideam.long) read.csv(example.ideam.long)
# Retreive example dataset Example_IDEAM <- system.file("extdata", "Example_IDEAM", package = "ideamdb") # Create a temporal file example.ideam.long <- tempfile() write.csv(IdeamLong(Example_IDEAM), file = example.ideam.long) read.csv(example.ideam.long)
Create a data frame that it is available to export as a CSV file
IdeamWide(file, write = FALSE, outfile = "MatrizIdeamAncha")
IdeamWide(file, write = FALSE, outfile = "MatrizIdeamAncha")
file |
IDEAM file path or file name if it is on the working directory |
write |
If True a CSV file is returned to the working directory, otherwise only a data frame is shown |
outfile |
Outfile name that will be saved on the working directory |
a data frame or a CSV file
# Retreive example dataset Example_IDEAM <- system.file("extdata", "Example_IDEAM", package = "ideamdb") # Create a temporal file example.ideam.wide <- tempfile() write.csv(IdeamWide(Example_IDEAM), file = example.ideam.wide) read.csv(example.ideam.wide)
# Retreive example dataset Example_IDEAM <- system.file("extdata", "Example_IDEAM", package = "ideamdb") # Create a temporal file example.ideam.wide <- tempfile() write.csv(IdeamWide(Example_IDEAM), file = example.ideam.wide) read.csv(example.ideam.wide)
Create a time series chart and a boxplot of every data sample
TimeSeries(file, station = "all", variable = "all")
TimeSeries(file, station = "all", variable = "all")
file |
IDEAM file path or file name if it is on the working directory |
station |
a single station name or type "all" or "todas" to plot everything |
variable |
a single variable name or type "all" or "todas" to plot everything only a data frame is shown |
time series plot and boxplot for every variable data and station
Example_IDEAM <- system.file("extdata", "Example_IDEAM", package = "ideamdb") TimeSeries(Example_IDEAM, station = "LUCERO") # Print time series chart and boxplots for all variables # collected in an specific station
Example_IDEAM <- system.file("extdata", "Example_IDEAM", package = "ideamdb") TimeSeries(Example_IDEAM, station = "LUCERO") # Print time series chart and boxplots for all variables # collected in an specific station