plant_linear: Interpolate plant properties using the 'linear' method.

View source: R/plantlinear.R

plant_linearR Documentation

Interpolate plant properties using the 'linear' method.

Description

Creates a daily sequence for one year from doy/value pairs.

Usage

plant_linear(doys, values, maxdoy)

Arguments

doys

Integer vector of dates (days of year).

values

Numeric vector of values.

maxdoy

Integer length of the year, 366 for leap years, 365 for normal years.

Value

A numeric vector of length maxdoy.

Examples

doys <- c(110,200,250,280)
values <-  c(0,0.8,1,0)
maxdoy <- 365
plot(plant_linear(doys = doys, values = values, maxdoy = 365))

pschmidtwalter/LWFBrook90R documentation built on Jan. 27, 2024, 1:48 p.m.