| od_aggregate_to | R Documentation |
This function takes a data frame of OD data and returns a data frame reporting summary statistics for each unique zone of destination.
od_aggregate_to(flow, attrib = NULL, FUN = sum, ..., col = 2)
flow |
A data frame representing origin-destination data.
The first two columns of this data frame should correspond
to the first column of the data in the zones. Thus in |
attrib |
character, column names in sl to be aggregated |
FUN |
A function to summarise OD data by |
... |
Additional arguments passed to |
col |
The column that the OD dataset is grouped by (1 by default, the first column usually represents the origin) |
It has some default settings: it assumes the destination ID column is the 2nd
and the default summary statistic is sum().
By default, if attrib is not set, it summarises all numeric columns.
Other od:
od2line(),
od2odf(),
od_aggregate_from(),
od_coords(),
od_coords2line(),
od_id,
od_id_order(),
od_oneway(),
od_to_odmatrix(),
odmatrix_to_od(),
points2flow(),
points2odf()
od_aggregate_to(flow)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.