uniform: Fits uniform distribution to abundance data

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

View source: R/uniform.R

Description

Fits uniform distribution to abundance data (data.frame)

Usage

1

Arguments

data

data.frame; abundance data, with one column of date objects and one with numeric values.

CheckData

logical; if TRUE CheckData function will check format of input data.frame

Details

Fits uniform distribution to abundance data, by using the dunif() function and giving it the minimum and maximum dates of the input dataframe.

Value

returns a list with the levels: $func = a function object, that is created by this function using the dunif() function. $estimationmethod = 'uniform', $startpoint = minimum of dates column in input dataframe, $endpoint = maximum of dates column in input dataframe.

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)
uniform(dat)

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