sch_get_activity | R Documentation |
Gets an activity by id.
sch_get_activity(sch, aid)
sch |
A schedule object. |
aid |
An activity id as defined by the user. |
A an activity information in a tibble with one line, or an error if activity id doesn't exist.
sch_activities()
, sch_duration()
, sch_nr_activities()
,
sch_add_activities()
, sch_critical_activities()
, sch_has_any_activity()
,
sch_change_activities_duration()
, sch_add_activity()
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.