lucC_relation_in: Allen Relation In

Description Usage Arguments Value Author(s) Examples

Description

Provide an extra 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_in(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
25
26
## Not run: 

library(lucC)

lucC_starting_point()

# create some examples of intervals
time7 <- lucC_interval("2011-08-01","2011-09-15")
time8 <- lucC_interval("2011-08-15","2011-08-29")

# 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 'in'  (during(first_interval, second_interval) | 
# starts(first_interval, second_interval) | 
# finishes(first_interval, second_interval))
lucC_relation_in(time8,time7)

           

## End(Not run)

ammaciel/lucC documentation built on May 30, 2019, 8:01 a.m.