CheckHurlbert: checks input data for OLE.hurlbert()

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/CheckHurlbert.R

Description

checks input data for OLE.hurlbert()

Usage

1
CheckHurlbert(data, Interpolate = TRUE)

Arguments

data

data-frame; It must have two columns, one wih date-objects one with numeric values.

interpolate

logical; determines whether data should be interpolated or not.

Details

This function checks if given data fits the requirenments for the OLE.hurlbert() function. Will interpolate the data if required.

Value

data.frame. based on input data.frame, may include new datapoints.

Author(s)

Florian Berger <florian_berger@ymail.com>

See Also

scale

Examples

1
2
3
4
5
a      <- c(1:10)
dates  <- as.Date(a, origin = '2017-01-01')
count  <- c(1,1,3,4,6,9,5,4,2,1)
dat    <- data.frame(dates, count)
newdat <- CheckHurlbert(dat)

biometry/phenologicalOverlap documentation built on May 21, 2019, 2:31 a.m.