Description Usage Arguments Value Author(s) See Also Examples
This function returns the coordinates for all unique origins and/or destinations in supplied data.
1 | get_unique_coords(data, orig = TRUE, dest = TRUE)
|
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) |
three column dataframe containing unique coordinates and location names
John Giles
Other utility:
get_admin_level()
,
get_beta_params()
,
get_gamma_params()
,
get_pop_vec()
,
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=1))
# Unique coordinates for all locations
get_unique_coords(x)
# Origins only
get_unique_coords(x, dest=FALSE)
# Destinations only
get_unique_coords(x, orig=FALSE)
# Without supplied ids
get_unique_coords(travel_data_sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.