| sch_duration {criticalpath} | R Documentation |
Duration
Description
An integer value that indicates the duration of a schedule.
Atention: the schedule must be planned with the function sch_plan().
Usage
sch_duration(sch)
Arguments
sch |
A schedule object. |
Value
The duration of the schedule.
See Also
sch_change_activities_duration(), sch_validate(),
sch_add_activities(), sch_reference(), sch_add_relations(),
sch_title(), sch_gantt_matrix(), sch_plan(), sch_new().
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]