This function checks which admin levels are in a generalized a data frame formatting like travel_data_sim and returns the lowest admin unit.

get_admin_level(data)

Arguments

data

generalized data frame described in travel_data_template or derivative thereof

Value

integer

See also

Author

John Giles

Examples

get_admin_level(travel_data_sim)
#> [1] 2