Description Usage Arguments Value Author(s) See Also Examples
This function builds unique character string identifiers for all origins and destinations.
1 2 3 4 5 6 7 8 |
data |
generalized data frame described in |
orig |
logical indicating whether to include unique coordinates from origin locations (default=TRUE) |
dest |
logical indicating whether to include unique coordinates from destination locations (default=TRUE) |
adm_start |
highest administrative level to include in unique names (default = NULL, which uses highest observed in the data) |
adm_stop |
lowest administrative level to include in unique names (default = NULL, which uses lowest observed in the data) |
name_class |
character indicating whether unique names should be either a unique character string ( |
two column dataframe containing unique names
John Giles
Other utility:
get_admin_level()
,
get_beta_params()
,
get_gamma_params()
,
get_pop_vec()
,
get_unique_coords()
1 2 3 4 5 6 7 8 9 10 | get_unique_ids(travel_data_sim)
# Starting at admin level 1
get_unique_ids(travel_data_sim, adm_start=1)
# Use numeric facto levels
get_unique_ids(travel_data_sim, name_class='numeric')
# Numeric for only the origin locations
get_unique_ids(travel_data_sim, dest=FALSE, name_class='numeric')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.