sch_get_activity {criticalpath} | R Documentation |
Get Activity
Description
Gets an activity by id.
Usage
sch_get_activity(sch, aid)
Arguments
sch |
A schedule object. |
aid |
An activity id as defined by the user. |
Value
A an activity information in a tibble with one line, or an error if activity id doesn't exist.
See Also
sch_activities()
, sch_duration()
, sch_nr_activities()
,
sch_add_activities()
, sch_critical_activities()
, sch_has_any_activity()
,
sch_change_activities_duration()
, sch_add_activity()
.
Examples
sch <- sch_new() %>%
sch_add_activities(
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_plan()
sch_get_activity(sch, 7)
[Package criticalpath version 0.2.1 Index]