Learn R Programming

criticalpath (version 0.2.1)

sch_has_any_relation: Has Any Relation

Description

A logical value that indicates if the schedule has any relation. A TRUE value means that the schedule has some relation; a FALSE, means that the schedule do not have any relation.

Usage

sch_has_any_relation(sch)

Arguments

sch

A schedule object.

Value

A logical value:

  • TRUE: The schedule has any relation;

  • FALSE: The schedule do not have any relation.

See Also

sch_topoi_la(), sch_relations(), sch_add_relations(), sch_topoi_sp(), sch_has_any_activity(), sch_all_predecessors(), sch_topoi_ad(), sch_nr_relations(), sch_all_successors(), sch_nr_activities(), sch_topoi_tf().

Examples

Run this code
# NOT RUN {
sch <- sch_new()
sch_has_any_relation(sch) # FALSE

sch <- sch_new() %>%
  sch_add_activity(1L, "A", 2L) %>%
  sch_add_activity(2L, "B", 5L, 1L, direction = "pred")
sch_has_any_activity(sch) # TRUE

# }

Run the code above in your browser using DataLab