Description Usage Arguments Details Value Author(s) See Also Examples
calculates the duration ratio from two abundance-datasets
1 | OLE.duration(data1, data2, CheckData = TRUE)
|
data1 |
data.frame or list; can either be an abundance dataset or an object for which the levels $startpoint and $endpoint are numeric values. The abundance dataset needs to have the levels $Date and $Count if CheckData = FALSE. |
CheckData |
logical; If TRUE the CheckData() function will be runned in advance. |
data1 |
data.frame or list; can either be an abundance dataset or an object for which the levels $startpoint and $endpoint are numeric values. The abundance dataset needs to have the levels $Date and $Count if CheckData = FALSE. |
calculates the duration ratio, by dividing the duration that both datasets share by the duratio of both datasets (meaning from earliest point to the latest, if there i a continuity between the two datasets (if they share at least one datapoint)). The function takes abundance datasets as input. A list with the levels $startpoint and $endpoint can be used alternatively.
numeric value representing Weitzman's Delta.
Florian Berger <florian_berger@ymail.com>
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.duration(dat1, dat2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.