lucC_relation_before: Allen Relation Before

Description Usage Arguments Value Author(s) Examples

View source: R/lucC_allen_relations.r

Description

Provide an Allen's interval relation to classified time series data. And return a logical value if an interval is TRUE or FALSE

Usage

1
lucC_relation_before(first_interval , second_interval)

Arguments

first_interval

lucC_interval. An interval between two dates.

second_interval

lucC_interval. An interval between two dates.

Value

Logical value if interval are TRUE or FALSE

Author(s)

Adeline M. Maciel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 

library(lucC)

lucC_starting_point()

# create some examples of intervals
time1 <- lucC_interval("2011-09-01","2011-10-01")
time4 <- lucC_interval("2011-10-01","2011-11-01")

# Two interval I and J, with:
# I <- ("2011-08-15","2011-08-29")
# J <- ("2011-09-01","2011-10-01")
# end_I equals to the final value of the interval, I == "2011-08-29"
# start_I equals to the begin value of the interval, I == "2011-08-15"
# end_J equals to the final value of the interval, J == "2011-10-01"
# start_J equals to the begin value of the interval, J == "2011-09-01"

# Apply a relation 'before' (end_I < start_J)
lucC_relation_before(time1,time4)

           

## End(Not run)

ammaciel/lucC documentation built on Oct. 7, 2017, 2:56 p.m.