cpcMeltArray: Convert a CPC Array to a tidy data.table

Description Usage Arguments Value

View source: R/cpcMeltArray.R

Description

This function takes in an array with indices [lon, lat, time] and with dimnames giving the values and converts the array to a data.table.

Usage

1

Arguments

array

the array to be converted to a tidy data.table

Value

returns a data.table with columns date, lon, lat, and prcp_mm. The prcp_mm colum will have NA values, corresponding to areas over ocean. These can be easily eliminated with na.omit().


jdossgollin/cpcRain documentation built on May 18, 2019, 11:33 p.m.