getTimeResolution | R Documentation |
Get the time resolution of the input grid as a character
getTimeResolution(grid)
grid |
a grid or station data |
A character representation of the time resolution. Current possible values are:
"1h", "3h", "6h", "12h", "DD", "MM", "YY"
. If none of these matches, "unknown"
is returned
J Bedia
require(climate4R.datasets)
data("EOBS_Iberia_tas")
getTimeResolution(EOBS_Iberia_tas)
monthly.grid <- aggregateGrid(EOBS_Iberia_tas, aggr.m = list(FUN = "mean", na.rm = TRUE))
stopifnot(identical(getTimeResolution(monthly.grid), "MM"))
annual.grid <- aggregateGrid(monthly.grid, aggr.y = list(FUN = "mean", na.rm = TRUE))
stopifnot(identical(getTimeResolution(annual.grid), "YY"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.