Learn R Programming

criticalpath (version 0.2.1)

sch_new: New Schedule

Description

Create a new schedule without any information. The new schedule contains the structure to include activities and relations.

Usage

sch_new()

Arguments

Value

A list with schedule definition.

See Also

sch_reference(), sch_add_activities(), sch_duration(), sch_xy_gantt_matrix(), sch_plan(), sch_add_relations(), sch_validate(), sch_non_critical_activities(), sch_title().

Examples

Run this code
# NOT RUN {
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

# }

Run the code above in your browser using DataLab