approx_standprop: Create a daily sequence from yearly values using...

Description Usage Arguments Details Value

View source: R/approx_standprop.R

Description

Uses yearly values of inter-annual vegetation development values (maxlai, sai, height, densef, age) and interpolates them to a daily sequence.

Usage

1
approx_standprop(x.years, y, xout.years = x.years, approx.method)

Arguments

x.years

A sequence of years or a single year

y

vector of the same length as x.years

xout.years

years for which ouput is generated, maybe longer or shorter than x.years

approx.method

name of interpolation method 'constant' or 'linear'.

Details

The y values are interpreted to be valid at the 1st of January of the respective x.years. Interpolation is made with rule = 2, so that for daily values outside the interpolation interval the value at the closest data extreme is used. For approx.method = 'linear', this results in constant values for all dates within xout.years >= max(x.years) or xout.years < min(x.years). If a single value is passed via y, then no interpolation is made and the value is simply repeated with length of Dates within xout.years.

Value

A vector of daily values corresponding to the dates in years.out


pschmidtwalter/brook90r documentation built on Sept. 26, 2018, 5:17 p.m.