choynowski: A function to clean and develop significance codes for a...

View source: R/choynowski.R

choynowskiR Documentation

A function to clean and develop significance codes for a Choynowski map of Divvy stations

Description

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.

Usage

choynowski(df)

Arguments

df

A cleaned month dataframe from the divvymos package

Value

chitracts

The tracts dataframe updated to contain Choynowski significance codes

Author(s)

Christopher Cebra

References

https://ride.divvybikes.com/system-data

Examples

##---- 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)
{
  }

ccebra/Divvy-Data documentation built on June 12, 2022, 1:50 a.m.