# NOT RUN {
kt.st <- states("Katsina") # Ensure this is a State, not an LGA.
kt.lg <- suppressWarnings(as_lga(kt.st))
is_state(kt.st) # TRUE
is_lga(kt.lg) # TRUE
## Where there's no ambiguity, it doesn't make sense to coerce
## This kind of operation ends with an error
# }
# NOT RUN {
as_state("Kano")
as_lga("Michika")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab