
Last chance! 50% off unlimited learning
Sale ends in
Takes a series of geographical points and converts them into a data.frame representing the potential flows, or 'spatial interaction', between every combination of points.
points2odf(p)
A spatial points object
Other od:
dist_google()
,
od2line()
,
od2odf()
,
od_aggregate_from()
,
od_aggregate_to()
,
od_aggregate()
,
od_coords2line()
,
od_coords()
,
od_dist()
,
od_id
,
od_oneway()
,
od_radiation()
,
od_to_odmatrix()
,
odmatrix_to_od()
,
points2flow()
,
sp_aggregate()
# NOT RUN {
data(cents)
df <- points2odf(cents)
cents_centroids <- rgeos::gCentroid(cents, byid = TRUE)
df2 <- points2odf(cents_centroids)
df3 <- points2odf(cents_sf)
# }
Run the code above in your browser using DataLab