Downloads data from <opencouncildata.co.uk/>, with the composition of each local council in Great Britain. If using this data, please cite the above site as the source.

council_seats(councillors = FALSE, tidy = TRUE, tidy_style = "snake_case")

Arguments

councillors

If TRUE, downloads details on each individual councillor for each local council. If FALSE, downloads summary data for each council. Defaults to FALSE.

tidy

If TRUE, fixes the variable names in the tibble to remove special characters and superfluous text, and converts the variable names to a consistent style. Defaults to TRUE.

tidy_style

The style to convert variable names to, if tidy=TRUE. Accepts one of 'snake_case', 'camelCase' and 'period.case'. Defaults to 'snake_case'.

Value

A tibble with the most recent available council seat distribution or councillor affiliations.

Examples

if (FALSE) {
a <- council_seats(councillors = FALSE)

b <- council_seats(councillors = TRUE)
}