daily2monthly: Convenience utility to convert daily to monthly data.

Description Usage Arguments Details Value Author(s) Examples

View source: R/daily2monthly.R

Description

Given data, an accompanying NetCDF coordinate variable, and the origin (units) for the coordinate variable, this function will return monthly resolution data.

Usage

1
daily2monthly(daily_data, time, origin_in, cells = NULL)

Arguments

daily_data

A matrix of daily data values.

time

The time indices that coorespond to the matrix of daily data.

cells

The number of cells in the daily_data matrix. Optional.

origin

The origin of the time coordinate variable.

Details

This is a convenience function to help use daily data with theBioClim utility.

Value

The data converted to monthly resolution.

Author(s)

David Blodgett dblodgett@usgs.gov

Examples

1
2
3
4
5
## Not run: 
data(daily2monthly_example, package='climates')
tmax_data<-daily2monthly(tmax_data, time_indices, origin, cells)

## End(Not run)

jjvanderwal/climates documentation built on May 19, 2019, 11:41 a.m.