lucC_predicate_holds: Predicate Allen Holds

Description Usage Arguments Value Author(s) Examples

Description

Provide a predicate of Allen's which asserts that a property holds during a time interval. Return a tibble with value within defined interval

Usage

1
2
lucC_predicate_holds (locations = NULL, location_properties = NULL, 
time_intervals = lucC_interval("2000-01-01", "2004-01-01"))

Arguments

locations

Tibble. A tibble with values longitude and latitude and other values

location_properties

Character. Name of value present in a row of the tibble, such as 'Forest' or other value

time_intervals

Interval. A interval of time to verify if location_properties is over or not in lucC_interval format. Given a tibble with values, will be asserts if that location_properties of locations holds during a time interval.

Value

Tibble with all events hold during a time interval

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
27
28
29
30
## Not run: 

library(lucC)

lucC_starting_point()

data("example_TWDTW")

input_tb_json <- example_TWDTW %>%
  lucC_standard_date_events(month_year = "09", day_month = "01")
input_tb_json

# example of application
time_ex1 <- lucC_interval("2000-09-01", "2003-09-01")
time_ex1
time_ex2 <- lucC_interval("2003-09-01", "2010-09-01")
time_ex2

# location_properties
properties <- "Forest"

# example predicate holds
lucC_predicate_holds(locations = input_tb_json, 
location_properties = "Forest", time_intervals = time_ex1)

lucC_predicate_holds(locations = input_tb_json, 
location_properties = properties, time_intervals = time_ex2)


## End(Not run)

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