Learn R Programming

criticalpath (version 0.2.1)

sch_add_activities_tibble: Add Activities Tibble

Description

Add activities tibble to a schedule.

Usage

sch_add_activities_tibble(sch, atb)

Arguments

sch

A schedule object.

atb

A tibble with activities definitions.

Value

A schedule with a activity tibble (atb) added.

Examples

Run this code
# NOT RUN {
atb <- tibble::tibble(
  id        = 1:17,
  name      = paste("a", as.character(1:17), sep=""),
  duration  = c(1L,2L,2L,4L,3L,3L,3L,2L,1L,1L,2L,1L,1L,1L,1L,2L,1L)
)
sch <- sch_new() %>%
  sch_add_activities_tibble(atb) %>%
  sch_plan()
sch_duration(sch) #4
# sch_activities(sch)

# }

Run the code above in your browser using DataLab