View source: R/transforms_time.R
iso_duration | R Documentation |
Convert ISO duration to numeric
iso_duration(x, units = "h")
x |
A character vector of ISO durations (e.g. PT23.5H) |
units |
Units to output (defaults to hours) |
A numeric vector of the durations in x, in requested units
iso_duration(.(PT1H,-PT1H,PT.5H,-PT.5H,P1D,PT24H,P1W,PT336H))
iso_duration(.(PT1H,-PT1H,PT.5H,-PT.5H,P1D,PT24H,P1W,PT336H), "days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.