chk_nopolyline {rStrava} | R Documentation |
Remove activities with no geographic data
Description
Remove activities with no geographic data, usually manual entries
Usage
chk_nopolyline(act_data, ...)
## S3 method for class 'actframe'
chk_nopolyline(act_data, ...)
Arguments
act_data |
a |
... |
arguments passed to or from other methods |
Details
This function is used internally within get_elev_prof
and get_heat_map
to remove activities that cannot be plotted because they have no geographic information. This usually applies to activities that were manually entered.
Value
act_data
with rows removed where no polylines were available, the original dataseset is returned if none were found. A warning is also returned indicating the row numbers that were removed if applicable.
Author(s)
Marcus Beck
Examples
## Not run:
# get my activities
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))
my_acts <- get_activity_list(stoken)
act_data <- compile_activities(my_acts)
chk_nopolyline(act_data)
## End(Not run)
[Package rStrava version 1.3.1 Index]