repairCadence: clean up cadence data for a track

Description Usage Arguments Value See Also

View source: R/gps_read.R

Description

repairCadence processes a gps track file to correct and summarize cadence data

Usage

1
2
3
repairCadence(trackdf, cadMax = 160, cadCorrectTooHigh = TRUE,
  cadCorrectNA = FALSE, cadCorrectStopped = TRUE,
  cadCorrectWindowSec = 7, loud = FALSE, ...)

Arguments

trackdf

data frame or tibble with gps track data

cadMax

max credible cadence value, larger values are errors

cadCorrectTooHigh

repair excessive cadence values using triangular-kernel-weighted average of the nearest nonmissing values in the same segment

cadCorrectNA

repair cadence missing values using triangular-kernel-weighted average of the nearest nonmissing values in the same segment

cadCorrectStopped

repair cadence by setting cadence to 0 when speed is zero. This is what would be appropriate if magnet parked near sensor was generating spurious clicks or if moving pedal while at stoplight

cadCorrectWindowSec

window size for kernel smoothing of cadence

loud

display actions taken

...

parameters for processSegments, statsPower, statsHeartRate, statsGearing, statsGrade, statsSession, statsStops

Value

dataframe with cadence data repaired

See Also

read_ride, statsCadence


CraigMohn/bikeCadHr documentation built on Sept. 27, 2018, 2:15 p.m.