Calculate weather variables through a function.

wcalFun(x, FUN, var.args, other.args = NULL, len = length(x[[1]]))

Arguments

x

A data frame contained all weather records

FUN

A function to be used which results should have the same length as original records.

var.args

Arguments of weather variable pass to FUN.

other.args

Optional arguments to FUN

len

The length of result