Learn R Programming

criticalpath (version 0.2.1)

sch_has_any_activity: Has Any Activity

Description

A logical value that indicates if the schedule has any activity. A TRUE value means that the schedule has any activity; a FALSE, means that the schedule do not have any activity.

Usage

sch_has_any_activity(sch)

Arguments

sch

A schedule object.

Value

A logical value:

  • TRUE: The schedule has any activity;

  • FALSE: The schedule do not have any activity.

See Also

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

Examples

Run this code
# NOT RUN {
sch <- sch_new()
sch_has_any_activity(sch) # FALSE

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

# }

Run the code above in your browser using DataLab