This function takes an OD dataset and returns only the rows corresponding to movements in which the origin is different than the destination.
od_interzone(x)
od_intrazone(x)
od_data = points_to_od(od_data_centroids)
nrow(od_data)
#> [1] 11449
nrow(od_interzone(od_data))
#> [1] 11342
nrow(od_intrazone(od_data))
#> [1] 107