getTime: Get start or end time of an element

Description Usage Arguments Examples

View source: R/gantt.R

Description

Get start or end time of an element

Usage

1
getTime(gantt, a = gantt$names[1], which = "start", human.readable = FALSE)

Arguments

gantt

A gantt object (created by makeGantt)

a

an element

which

start, end

human.readable

If TRUE, time is given in human readable format

Examples

1
2
3
4
response<-"{'response':'1/8 10:30;1/8 13:00 - 1/8 14:00;1/8 11:30 - 1/8 12:30'}"
gantt<-makeGantt(response,names=c("waitress","actor","pianist"),timespan=30,time.format="%d/%m %H:%M")
getTime(gantt,"waitress",which="end",human.readable=T)
getTime(gantt,"actor",which="end",human.readable=T)

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