Learn R Programming

od (version 0.5.1)

od_interzone: Return only interzonal (io intrazonal) OD pairs

Description

This function takes an OD dataset and returns only the rows corresponding to movements in which the origin is different than the destination.

Usage

od_interzone(x)

od_intrazone(x)

Arguments

x

A data frame in which the first two columns are codes representing points/zones of origin and destination

Examples

Run this code

od_data = points_to_od(od_data_centroids)
nrow(od_data)
nrow(od_interzone(od_data))
nrow(od_intrazone(od_data))

Run the code above in your browser using DataLab