Skip to contents

Utility function to look up potential athlete ID numbers (and other identifying info). This function will be most useful in helping identify the id number of the athlete you're most interested in, which can then (optionally) be passed to the open_leaderboard function to get Crossfit Open results for a specific athlete

Usage

lookup_athlete_id(name, year, division = c("men", "women", "teams"))

Arguments

name

Name of athlete to search for

year

Year of open competition to search for

division

Division to look in. Currently only accepts 'men', 'women', and 'teams'

Value

A list with information about athletes matching the 'name' parameter.

Examples

if (FALSE) {
#can pass just a last name
res <- lookup_athlete_id("toomey", 2022, "women")

#or you can pass a full name
res2 <- lookup_athlete_id("laura horvath", 2022, "women")

}