month_contains_election | R Documentation |
Finds the election relating to a month (where an election took place on any day that month).
month_contains_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 month to classifiy as yyyy-mm-dd where dd must be 01. |
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.