This function takes a data frame of OD data and returns a data frame reporting summary statistics for each unique zone of origin.
od_aggregate_from(flow, attrib = NULL, FUN = sum, ..., col = 1)
character, column names in sl to be aggregated
A function to summarise OD data by
Additional arguments passed to FUN
The column that the OD dataset is grouped by (1 by default, the first column usually represents the origin)
It has some default settings: the default summary statistic is sum()
and the
first column in the OD data is assumed to represent the zone of origin.
By default, if attrib
is not set, it summarises all numeric columns.
Other od:
dist_google()
,
od2line()
,
od2odf()
,
od_aggregate_to()
,
od_coords2line()
,
od_coords()
,
od_dist()
,
od_id
,
od_oneway()
,
od_to_odmatrix()
,
odmatrix_to_od()
,
points2flow()
,
points2odf()
# NOT RUN {
od_aggregate_from(flow)
# }
Run the code above in your browser using DataLab