choynowski | R Documentation |
This function performs a spatial join of Divvy stations from the input dataframe with a census tract map to compute the number of stations in each count. Then, using the tract areas from the "areas" dataframe, computes an expected number of stations per tract based on the area. The function then adds a column to mark which stations are statistically significant.
choynowski(df)
df |
A cleaned month dataframe from the divvymos package |
chitracts |
The tracts dataframe updated to contain Choynowski significance codes |
Christopher Cebra
https://ride.divvybikes.com/system-data
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. ## The function is currently defined as function (x) { }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.