Skip to contents

The boston_athlete() function uses the results_boston database to get information about an athlete that finish Boston Marathon from 2009 to 2022.

Usage

boston_athlete(athlete)

Arguments

athlete

Year when the event occured (string).

Value

A ggplot2 plot with density of the athletes (y-axis) over finishing times (x-axis).

Examples

boston_athlete(athlete = "Kipruto")
#> # A tibble: 3 × 5
#>    year full_name      age_on_race_day rank_over_gender official_time
#>   <int> <chr>                    <dbl>            <dbl> <hms>        
#> 1  2022 Benson Kipruto              31                3 7647 secs    
#> 2  2021 Benson Kipruto              30                1 7791 secs    
#> 3  2019 Benson Kipruto              28               10 7793 secs    
boston_athlete(athlete = "Benson Kipruto")
#> # A tibble: 3 × 5
#>    year full_name      age_on_race_day rank_over_gender official_time
#>   <int> <chr>                    <dbl>            <dbl> <hms>        
#> 1  2022 Benson Kipruto              31                3 7647 secs    
#> 2  2021 Benson Kipruto              30                1 7791 secs    
#> 3  2019 Benson Kipruto              28               10 7793 secs