recurse_past_editions: Guess past editions of an 'event_code'

Description Usage Arguments Value See Also Examples

View source: R/gathering.R

Description

Swing Plan-It keeps past events on the website, but doesn't make them accessible through the homepage nor the past-events page. However they follow simple naming conventions: if you already have a url https://www.swingplanit.com/event/hot-rhythm-holiday-6, then you can try and access the urls for hot-rhythm-holiday-5, hot-rhythm-holiday-4, etc, and there are good chances that those pages will still be up. This function recursively go through the likely candidates and record them.

Usage

1
recurse_past_editions(s, idx = NULL, pad = FALSE)

Arguments

s

A character vector. The event_code to find past editions for

idx

An integer. The current index for which to create a "guessed" event_code. Used only in the recursion, don't put anything here, Default: NULL

pad

Whether to pad idx with a 0 (in order to handle dates). Used only in the recursion, don't put anything here, Default: FALSE

Value

A character vector of "guessed" events, or NA if nothing was found.

See Also

str_match, find_more_codes

Examples

1
2
3
4
5
6
7
## Not run: 
if(interactive()){
 recurse_past_editions('hot-rhythm-holiday7')
 recurse_past_editions('my-balboa-weekend-2020')
 }

## End(Not run)

E-dC/swing-events-explorer documentation built on July 17, 2020, 12:59 p.m.