bayareametro / clpr Goto Github PK
View Code? Open in Web Editor NEWR package with analysis utilities and approaches for a data set of obscured and anonymized Clipper smart card transactions.
Home Page: https://bayareametro.github.io/clpr/
R package with analysis utilities and approaches for a data set of obscured and anonymized Clipper smart card transactions.
Home Page: https://bayareametro.github.io/clpr/
https://github.com/BayAreaMetro/clpr/blob/master/inst/sql/day_fares.sql#L4
write what this line does in a comment above the query
the lag method used here works for a specific desired outcome but it might be helpful to compare it against results from the transfer operator column tag.
https://github.com/BayAreaMetro/clpr/blob/master/R/transfers.R#L36-L46
one helpful thing to do would be to get better documentation on how the transfer_operator column works (how its assigned, rules about what constitutes a transfer, etc.)
we should add this to the top of the main readme:
library(DBI)
library(dbplyr)
library(dplyr)
@ytse17 if you want to add this as you work in it feel free otherwise ill add it after.
in theory we can probably move this processing to the database side.
currently it happens on the client side and takes a long time.
https://github.com/BayAreaMetro/clpr/blob/master/R/complete_trip.R#L30-L36
rename drop_tagons
to as_rides
rename bart_transactions_as_transfers
to as_bart_journeys
this will make things more comprehensible.
this is currently being done on the fix-namespace
branch:
source keys within the example
remove extract_ sql from here, since its not relevant to the database.
add a link in the readme to the commit where its removed.
specifically describe columns that are returned.
https://github.com/BayAreaMetro/clpr/blob/master/R/transfers.R#L84-L102
the vignette is helpful for showing how this function is used with the database connection, but needs documentation explaining how to use this function on dataframes extracted from the db
text before code, describing what it is. important to highlight it
some of them do require box access and this may not be clear in the function docs. link to vignettes might help. some of them may also be redundant/less useful than functions that relate to data lake.
should be better syntactically
use @ return instead of @ returns
It would be interesting if the public could also play with this data, even if it is a few years out of date. Is the data available as a dump anywhere online for public consumption?
can do this in the function help docs @ returns
related to #14
recursively apply a set of rules (time between tags, transfer_operator value, etc) between individual transactions to determine their relationship.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.