Description Usage Arguments Details Value Examples
Function to split an activity into custom splits
1 2 3 4 5 | createSplits(
data,
splitValues,
type = c("everyKm", "thisKm", "everyMin", "thisMin")[1]
)
|
data |
(dataframe) an activity dataframe |
splitValues |
(numeric vector) the split points
|
type |
(character). one of the following:
|
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.
The function returns a list of data frames, one for each split
1 2 3 4 5 | gpx <- evenActivity
sp<-createSplits(gpx, 2000, type = "everyKm")
sp<-createSplits(gpx, c(1000, 3000, 4500), type = "thisKm")
sp<-createSplits(gpx, 2, type = "everyMin")
sp<-createSplits(gpx, c(5, 15, 35), type = "thisMin")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.