| wcal | R Documentation |
There are two modes to use wcal, function mode if FUN is not null,
and string formula mode if FUN is NULL.
wcal(object, ...)
## S4 method for signature 'WeaAna'
wcal(object, FUN = NULL, ..., var.args = NULL, var.name = NULL)
object |
A WeaAna objects. |
... |
Optional arguments to |
FUN |
A function to be used which results should have the same length as original records. |
var.args |
Arguments of weather variable pass to |
var.name |
Variable name is used if |
library(weaana)
data( "records" )
# Daily mean temperature
wcal( records, avgt2 = "( maxt + mint ) / 2" )
# Moving average temperature
wcal( records, FUN = mov.avg, var.args = "avgt", k = 5, shift = "begin", var.name = "mov.avg" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.