Description Usage Arguments Value
Compute annual mean of a variable based on columns of monthly means.
1 | comp_ymean(in_dt, fieldex, mstart, outcol)
|
in_dt |
data table, contains columns of monthly values. |
fieldex |
character, example column name containing monthly value. It must include the month number in %m format (two digits e.g. 02 for February) |
mstart |
integer; position of the first digit of the month in the column of monthly values. |
outcol |
character; name of new column to be created containing monthly mean |
Modifies in_dt in place. Add column of weighted mean across months (based on number of days in months)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.