Variables available in each model. The grepVar function is a wrapper around grep to search for variables.
Usage
grepVar(x, service, day = Sys.Date() - 15, complete = FALSE)
Arguments
x
character string to be matched in the description column of the corresponding vars* file.
service
Character, to choose from 'meteogalicia', 'gfs', 'nam', and 'rap'
day
Date. Services change the variables availability over time.
complete
Logical, if FALSE (default) only the name column is returned. If TRUE the three columns are provided.
Value
Each data.frame contains three columns, name, label, and description, with the information about the variables available in each service. Use the elements of the name column to choose a variable with the argument var of getRaster and getPoint.
## Not run:
## Variables available recently
grepVar('cloud', service = 'gfs', complete = TRUE)
## Variables available some time ago
grepVar('cloud', service = 'gfs',
day = Sys.Date() - 500,
complete = TRUE)
## End(Not run)