Description Usage Arguments Value Author(s) See Also Examples
This function returns coordinates for all unique locations in supplied data.
1 | get_pop_vec(data, orig = TRUE, dest = TRUE)
|
data |
generalized data frame described in |
orig |
logical indicating whether to include origin location in unique names (default= TRUE) |
dest |
logical indicating whether to include destination location in unique names (default= TRUE) |
two column dataframe containing unique names
John Giles
Other utility:
get_admin_level()
,
get_beta_params()
,
get_gamma_params()
,
get_unique_coords()
,
get_unique_ids()
1 2 3 4 5 6 7 8 9 10 11 12 13 | x <- cbind(travel_data_sim, get_unique_ids(travel_data_sim, adm_start=2))
# Unique coordinates for all locations
get_pop_vec(x)
# Origins only
get_pop_vec(x, dest=FALSE)
# Destinations only
get_pop_vec(x, orig=FALSE)
# Without supplied ids
get_pop_vec(travel_data_sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.