comp_ymean: Compute annual mean

Description Usage Arguments Value

Description

Compute annual mean of a variable based on columns of monthly means.

Usage

1
comp_ymean(in_dt, fieldex, mstart, outcol)

Arguments

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

Value

Modifies in_dt in place. Add column of weighted mean across months (based on number of days in months)


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.