date_to_election | R Documentation |
Finds the election relating to any specific date.
date_to_election( the_date, election_start_col = "monthsearch_start", election_end_col = "monthsearch_end", election_data = durhamevp::election_dates, return_col = "election_name" )
the_date |
the date to classifiy |
election_start_col |
the column in the election data frame which identifies when the election starts. |
election_end_col |
the column in the election data frame which identifies when the election ends. |
election_data |
the data frame containing the election data. |
return_col |
the column in the data frame containing the name of the election (to be returned by the function). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.