Learn R Programming

criticalpath (version 0.2.1)

sch_nr_activities: Nr. of Activities

Description

Number of activities in a schedule as an integer value.

Usage

sch_nr_activities(sch)

Arguments

sch

A schedule object.

Value

A integer value indicating the number of activities.

See Also

sch_add_activity(), sch_nr_relations(), sch_add_activities(), sch_activities(), sch_change_activities_duration(), sch_critical_activities(), sch_get_activity(), sch_has_any_relation().

Examples

Run this code
# NOT RUN {
sch <- sch_new()
sch_nr_activities(sch) # 0

sch <- sch_new() %>%
  sch_add_activity(1L, "Only one", 0L) %>%
  sch_plan()
sch_nr_activities(sch) # 1

# }

Run the code above in your browser using DataLab