has.key | R Documentation |
has.key
tests whether a gribMessage object has a given key.
has.key(gribMessage, key)
gribMessage |
gribMessage object to be tested. |
key |
character string of the key to be tested for. |
Returns a logical
g <- grib_open(system.file("extdata", "lfpw.grib1", package = "gribr"))
gm <- grib_get_message(g, 1)
# this key exists
has.key(gm, "shortName")
# this key does not exist
has.key(gm, "grib")
grib_close(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.