power_prof(power.W, time.s, windows = seq(2 * 60, 30 * 60, 10), quietly = FALSE)
tbl_df
with two columns: a vector of time
windows and a vector of corresponding maximal mean powers.
windows / sampling_frequency
. Hence, the default
range for the profile should be roughly 2 to 30 minutes (in 10 second
increments) assuming 1 Hz sampling. If there are large breaks in the data, specious values might be
returned. This because head unit devices will record a power value when
recording is resumed after a pause, and this power value will thus be
associated with a large delta time value. In effect, the power value logged
when recording is resumed will be treated as the mean power output
for that entire break. With obvious implications. If such a situation is
encountered, this function will throw a warning if quietly = FALSE
.
data(chaingang)
pt <- with(chaingang, power_prof(power.W, time.s))
plot(pt)
Run the code above in your browser using DataLab