sch_plan {criticalpath} | R Documentation |
Plan Schedule
Description
Perform schedule plan: execute topological sort and critical path calculation. All information about critical path are calculated.
Usage
sch_plan(sch)
Arguments
sch |
A schedule object. |
Value
A schedule with critical path calculated.
See Also
sch_gantt_matrix()
, sch_duration()
, sch_reference()
,
sch_add_activities()
, sch_has_any_activity()
, sch_title()
, sch_new()
,
sch_add_relations()
.
Examples
sch <- sch_new() %>%
sch_add_activities(
id = c(1L, 2L, 3L, 4L),
name = c("A", "B", "C", "D"),
duration = c(3L, 4L, 9L, 1L)
) %>%
sch_add_relations(
from = c(1L, 2L, 2L),
to = c(2L, 3L, 4L)
) %>%
sch_plan()
sch_duration(sch) # 16
[Package criticalpath version 0.2.1 Index]