View source: R/dataInventory.R
dataInventory | R Documentation |
Function to provide a quick overview of a climate dataset (either stations or gridded data)
dataInventory(dataset, return.stats = FALSE)
dataset |
A character string poiting to the target. Either a directory containing the data
in the case of station data in standard ASCII format (see |
return.stats |
Optional logical flag indicating if summary statistics of the dataset should be returned with the inventory. Only used for station data. |
A list of components describing the variables and other characteristics of the target dataset.
The variable names returned correspond to the original names of the variables as stored in the dataset, and not to the standard naming convention defined in the vocabulary.
J Bedia
stationInfo
for a quick overview of available stations in station datasets.
Further details are given in scanVarDimensions
, which is the internal performing
the dimension info retrieval.
## Not run:
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"
di <- dataInventory(value)
str(di)
# To obtain summary statistics of the variables stored:
di.stats <- dataInventory(value, return.stats = TRUE)
print(di.stats$Summary.stats)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.