Description Usage Arguments Details Value Examples
Function to smooth variable. The function uses the function rollmean() from the package zoo to smooth the data. See its documentation for arguents and tier meaning
1 |
data |
(dataframe) an activity dataframe |
variable |
(character) the column name of the variable to smooth. If NULL, all variable except 'Time', 'Distance', 'LatitudeDegrees' and 'LongitudeDegrees' will be smoothed |
k |
integer the size of the smooting kernel. Must be odd. An inner function converts even Ks to the closest odd K. |
The function uses the provided split values and split type to divide the activity dataframe in a list of dataframes, each one corresponding to a split starting and finishing at the specified times/distances.
An activity dataframe with smoothed data
1 2 | gpx <- evenActivity
smoothedData <- gpxSmooth(gpx, "Pace", k = 39)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.