OLE.wmd: calculates a 'weighted mean day' based overlap measure

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

View source: R/OLE-wmd.R

Description

calculates the overlap on the basis of the concept of the 'weighted mean day'

Usage

1
OLE.wmd(data1, data2, CheckData = TRUE)

Arguments

data1

data.frame; abundance dataset. Needs a column with only date objects and one with only numerics. If CheckData = TRUE those need to be named $Date and $Count.

data2

data.frame; abundance dataset. Needs a column with only date objects and one with only numerics. If CheckData = TRUE those need to be named $Date and $Count. needs to have the levels $Date and $Count if CheckData = FALSE.

CheckData

logical; If TRUE the CheckData() function will be runned in advance.

Details

calculates the overlap on the basis of the concept of the 'weighted mean day' by dividing the difference of wmd by the square-root of the sum of the squared standard deviations of both datasets.

Value

numeric value representing the overlap.

Author(s)

Florian Berger <florian_berger@ymail.com>

See Also

scale

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#Create Datasets
 a     <- c(1:10)
 dates1 <- as.Date(a, origin = '2017-01-01')
 count1 <- c(1,1,3,4,6,9,5,4,2,1)
 dat1   <- data.frame(dates1, count1)
 b     <- c(6:15)
 dates2 <- as.Date(b, origin = '2017-01-01')
 count2 <- c(1,2,4,5,6,9,3,4,1,1)
 dat2   <- data.frame(dates2, count2)
 
 OLE.wmd(dat1, dat2)

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