Description Usage Arguments Value Examples
Get duration
1 | getDuration(gantt, a)
|
gantt |
A gantt object (created by makeGantt) |
a |
An element |
Returns duration in seconds
1 2 3 4 5 6 | response<-matrix(c("{'response':'1/8 17:00;1/8 17:00 - 1/8 17:30;1/8 17:00 - 1/8 18:00;1/8 17:00, 1/8 18:00, 1/8 19:00, 1/8 20:00;1/8 20:30;1/8 20:00 - 1/8 20:30;1/8 19:30 - 1/8 20:30'}"))
gantt<-makeGantt(response2,names=c("waitress","actor","pianist","bartender","cleaning","ticketer","musician"),timespan=30,time.format="%d/%m %H:%M")
getDuration(gantt,"actor")
getDuration(gantt,"waitress")
getDuration(gantt,"bartender")
getDuration(gantt,"cleaning")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.