getDuration: Get duration

Description Usage Arguments Value Examples

View source: R/gantt.R

Description

Get duration

Usage

1
getDuration(gantt, a)

Arguments

gantt

A gantt object (created by makeGantt)

a

An element

Value

Returns duration in seconds

Examples

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")

openPCI/OpenPCIScoring documentation built on June 10, 2021, 1:18 p.m.