sch_nr_relations: Nr. of Relations

Description Usage Arguments Value See Also Examples

View source: R/sch_relation.R

Description

Number of relations in a schedule as an integer value.

Usage

1

Arguments

sch

A schedule object.

Value

A integer value indicating the number of relations.

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
sch <- sch_new() %>%
  sch_title("Fictitious Project Example") %>%
  sch_reference("VANHOUCKE, Mario. Measuring time:
  improving project performance using earned value management.
  Gent: Springer, 2009, p. 18") %>%
  sch_add_activity(  1L, "a1" , 0L, 2,3,4) %>%
  sch_add_activity(  2L, "a2" , 4L, 5) %>%
  sch_add_activity(  3L, "a3" , 9L, 10) %>%
  sch_add_activity(  4L, "a4" , 1L, 6) %>%
  sch_add_activity(  5L, "a5" , 4L, 9) %>%
  sch_add_activity(  6L, "a6" , 5L, 7) %>%
  sch_add_activity(  7L, "a7" , 1L, 8,11) %>%
  sch_add_activity(  8L, "a8" , 7L, 12) %>%
  sch_add_activity(  9L, "a9" , 8L, 12) %>%
  sch_add_activity( 10L, "a10", 3L, 12) %>%
  sch_add_activity( 11L, "a11", 3L, 12) %>%
  sch_add_activity( 12L, "a12", 0L) %>%
  sch_plan()
sch_nr_relations(sch) # 14

rubens2005/criticalpath documentation built on Feb. 6, 2022, 10:54 p.m.