validate_district {ProPublicaR} | R Documentation |
Validate that a district abbreviation is correct
Description
Validate that a district abbreviation is correct
Usage
validate_district(us_district)
Arguments
us_district |
An integer corresponding to the district. |
Value
TRUE if correct FALSE otherwise
Examples
## 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)
[Package ProPublicaR version 1.1.4 Index]