Example destinations data
This dataset represents trip destinations on a different geographic
level than the origins stored in the object cents
.
data(destination_zones)
A spatial dataset with 87 features
Other example data:
flow_dests
,
flowlines
,
flow
,
route_network
,
routes_fast
,
routes_slow
## Not run: # This is how the dataset was constructed - see # https://cowz.geodata.soton.ac.uk/download/ download.file( "https://cowz.geodata.soton.ac.uk/download/files/COWZ_EW_2011_BFC.zip", "COWZ_EW_2011_BFC.zip" ) unzip("COWZ_EW_2011_BFC.zip") wz <- raster::shapefile("COWZ_EW_2011_BFC.shp") to_remove <- list.files(pattern = "COWZ", full.names = TRUE, recursive = TRUE) file.remove(to_remove) proj4string(wz) wz <- sp::spTransform(wz, proj4string(zones)) destination_zones <- wz[zones, ] plot(destination_zones) devtools::use_data(destination_zones) head(destination_zones@data) destinations <- rgeos::gCentroid(destinations, byid = TRUE) destinations <- sp::SpatialPointsDataFrame(destinations, destination_zones@data) devtools::use_data(destinations, overwrite = TRUE) destinations_sf <- sf::st_as_sf(destinations) devtools::use_data(destinations_sf) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.