Description Usage Arguments Value Examples
Given a vector of zone boundaries, sums the time spent in each zone.
1 2 |
data |
a "cycleRdata" object, produced from a |
column |
the column name of the data to which the zone boundaries relate. |
zbounds |
numeric; zone boundaries. |
pct |
should percentage values be returned? |
character.only |
are column name arguments given as character strings? A backdoor around non-standard evaluation. Mainly for internal use. |
a data frame of zone times.
1 2 3 4 5 6 7 8 9 10 | data(ridedata)
## Time spent above and below critical power...
zone_time(ridedata, "power.W", zbounds = 300) / 60 # Minutes.
## Or with more zones...
zone_time(ridedata, "power.W", zbounds = c(100, 200, 300)) / 60
## Or given as a percentage...
zone_time(ridedata, "power.W", zbounds = c(100, 200, 300), pct = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.