View source: R/validate_district.R
validate_district | R Documentation |
Validate that a district abbreviation is correct
validate_district(us_district)
us_district |
An integer corresponding to the district. |
TRUE if correct FALSE otherwise
## Not run:
validate_district(1)#TRUE
validate_district(111) #FALSE
validate_district(us_congressional_districts$district[1]) #FALSE
validate_district(as.numeric(us_congressional_districts$district_number[1])) #TRUE
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.