View source: R/dataInventory.R
stationInfo | R Documentation |
Get a quick overview of the stations contained in a stations dataset
stationInfo(dataset, plot = TRUE)
dataset |
A character string indicating the database to be accessed. For station data in standard ASCII format, this is the path to the directory the dataset lives in. |
plot |
Logical indicating if a map displaying the station locations should be displayed. Default to TRUE. |
A data.frame with the station codes in its first column, followed by longitude and latitude,
and the rest of metadata (if any) in the following columns. If plot = TRUE
, also a map of the station locations.
For an adequate map display the station coordinates must be in decimal degrees.
J. Bedia
dataInventory
to obtain a more exhaustive report the dataset.
dir.create("mydirectory")
download.file("http://meteo.unican.es/work/loadeR/data/VALUE_ECA_86_v2.tar.gz",
destfile = "mydirectory/VALUE_ECA_86_v2.tar.gz")
# Extract files from the tar.gz file
untar("mydirectory/VALUE_ECA_86_v2.tar.gz", exdir = "mydirectory")
# Data inventory
value <- "mydirectory/VALUE_ECA_86_v2"
print(stationInfo(value))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.