diff --git a/R/athl_fun.R b/R/athl_fun.R index 5e85641..db82fc4 100644 --- a/R/athl_fun.R +++ b/R/athl_fun.R @@ -11,7 +11,7 @@ #' #' @concept notoken #' -#' @return A list for each athlete, where each element is an additional list with elements for the athlete name, location, units of measurement, monthly data, recent activities, and achievements. The list elements are named using the athlete id numbers. \code{NA} will be returned if the data for an athlete could not be accessed. +#' @return A list for each athlete, where each element is an additional list with elements for the athlete's information. The list elements are named using the athlete id numbers. #' #' @examples #' ## single athlete diff --git a/R/athlind_fun.R b/R/athlind_fun.R index 1221731..02b674b 100644 --- a/R/athlind_fun.R +++ b/R/athlind_fun.R @@ -10,7 +10,7 @@ #' #' @export #' -#' @return A list with elements for the athlete name, location, units of measurement, monthly data, recent activities, and achievements. +#' @return A list with elements for the athlete's information. athlind_fun <- function(athl_num){ # get unparsed url text using input diff --git a/README.md b/README.md index a6d0788..d9d1ffd 100644 --- a/README.md +++ b/README.md @@ -65,24 +65,22 @@ athl_fun(2837007, trace = FALSE) ## $`2837007`$location ## [1] "Saint Petersburg, Florida" ## - ## $`2837007`$units - ## [1] "mi" "ft" + ## $`2837007`$follow + ## Followers Following + ## 1 79 82 ## ## $`2837007`$monthly - ## month miles hours elev_gain - ## 1 2022-11-01 45.55707 6 195 - ## 2 2022-12-01 62.25518 8 983 - ## 3 2023-01-01 112.87767 12 273 - ## 4 2023-02-01 74.15133 9 109 - ## 5 2023-03-01 94.99336 11 227 - ## 6 2023-04-01 77.32219 9 98 - ## 7 2023-05-01 69.49664 8 87 + ## Distance Moving Time + ## 1 12.0 mi 5:54:18 ## ## $`2837007`$recent - ## id name type startDateLocal distance elevation movingTime - ## 1 9130931408 Morning Ride ride 2023-05-24 2.7 11 10:52 - ## 2 9130716559 Morning Run run 2023-05-24 3.2 12 26:35 - ## 3 9128167016 Afternoon Ride ride 2023-05-23 2.7 20 12:43 + ## Date Name Time + ## 1 October 13, 2023 Evening Ride 41:03 + ## 2 October 12, 2023 Afternoon Ride 40:40 + ## 3 October 9, 2023 Afternoon Ride 42:28 + ## + ## $`2837007`$trophies + ## list() ## ## $`2837007`$achievements ## list() diff --git a/man/athl_fun.Rd b/man/athl_fun.Rd index 900e395..e84f214 100644 --- a/man/athl_fun.Rd +++ b/man/athl_fun.Rd @@ -12,7 +12,7 @@ athl_fun(athl_num, trace = TRUE) \item{trace}{logical indicating if output is returned to console} } \value{ -A list for each athlete, where each element is an additional list with elements for the athlete name, location, units of measurement, monthly data, recent activities, and achievements. The list elements are named using the athlete id numbers. \code{NA} will be returned if the data for an athlete could not be accessed. +A list for each athlete, where each element is an additional list with elements for the athlete's information. The list elements are named using the athlete id numbers. } \description{ Get data for an athlete by web scraping, does not require authentication. diff --git a/man/athlind_fun.Rd b/man/athlind_fun.Rd index 8e87129..144ef49 100644 --- a/man/athlind_fun.Rd +++ b/man/athlind_fun.Rd @@ -10,7 +10,7 @@ athlind_fun(athl_num) \item{athl_num}{numeric athlete id used by Strava} } \value{ -A list with elements for the athlete name, location, units of measurement, monthly data, recent activities, and achievements. +A list with elements for the athlete's information. } \description{ Get data for a single athlete by web scraping, does not require authentication. diff --git a/man/figures/unnamed-chunk-13-1.png b/man/figures/unnamed-chunk-13-1.png index a9d70f6..4432ad2 100644 Binary files a/man/figures/unnamed-chunk-13-1.png and b/man/figures/unnamed-chunk-13-1.png differ diff --git a/man/figures/unnamed-chunk-14-1.png b/man/figures/unnamed-chunk-14-1.png index a46e2be..28c3ade 100644 Binary files a/man/figures/unnamed-chunk-14-1.png and b/man/figures/unnamed-chunk-14-1.png differ diff --git a/man/figures/unnamed-chunk-14-2.png b/man/figures/unnamed-chunk-14-2.png index e1ca14c..0a61034 100644 Binary files a/man/figures/unnamed-chunk-14-2.png and b/man/figures/unnamed-chunk-14-2.png differ diff --git a/man/figures/unnamed-chunk-18-1.png b/man/figures/unnamed-chunk-18-1.png index 7c28f56..124f776 100644 Binary files a/man/figures/unnamed-chunk-18-1.png and b/man/figures/unnamed-chunk-18-1.png differ