aggregate.smet | R Documentation |
aggregate
## S3 method for class 'smet'
aggregate(
x,
date.field = "timestamp",
FUN = mean,
INDEX = by[1],
by = c("hourly", "daily", "monthly", "yearly"),
past = TRUE,
...
)
x |
a |
date.field |
field name used for date and time. Default is |
INDEX, FUN, ... |
further arguments for |
by |
an index vector or a chararacter vector defining the time interval used for aggregation. Default is |
past |
logical value. If it is |
FUN
can be one function or a list of functions where each function is used to aggregate each time-series variable of the smet-class
object object. In case FUN
is a list
, each function element should be named with the respectiva variable name and all functions must have the seme arguments passed through ...
.
as.smet
,tapply
smet <- as.smet(system.file("examples/T0179.smet",package="RSMET"))
out <- aggregate(smet)
out_d <- aggregate(smet,by="daily",past=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.