Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
2 of 10 committers (20.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
bicycle-hire
bicycle-hire-systems
bike-data
bike-hire
database
peer-reviewed
r
r-package
rstats
Keywords from Contributors
weather-data
weather-forecast
weather
turfjs
turf
geojson
exploratory-data-analysis
overpass-api
osm-data
crypto-currency-exchanges
Last synced: 4 months ago
·
JSON representation
Repository
:bike: Extract data from public hire bicycle systems
Basic Info
- Host: GitHub
- Owner: ropensci
- Language: R
- Default Branch: main
- Homepage: https://docs.ropensci.org/bikedata
- Size: 5.36 MB
Statistics
- Stars: 81
- Watchers: 8
- Forks: 17
- Open Issues: 19
- Releases: 9
Topics
bicycle-hire
bicycle-hire-systems
bike-data
bike-hire
database
peer-reviewed
r
r-package
rstats
Created about 9 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
Changelog
Contributing
Codemeta
README.Rmd
---
title: "bikedata"
keywords: "bicycle hire systems, bike hire systems, bike hire, bicycle hire, database, bike data"
output:
rmarkdown::html_vignette:
self_contained: no
md_document:
variant: markdown_github
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[](https://github.com/ropensci/bikedata/actions?query=workflow%3AR-CMD-check)
[](https://codecov.io/gh/ropensci/bikedata)
[](https://www.repostatus.org/)
[](https://cran.r-project.org/package=bikedata)
[](https://cran.r-project.org/package=bikedata)
[](https://github.com/ropensci/software-review/issues/116)
[](https://joss.theoj.org/papers/10.21105/joss.00471)
The `bikedata` package aims to enable ready importing of historical trip data
from all public bicycle hire systems which provide data, and will be expanded on
an ongoing basis as more systems publish open data. Cities and names of
associated public bicycle systems currently included, along with numbers of
bikes and of docking stations (from
[wikipedia](https://en.wikipedia.org/wiki/List_of_bicycle-sharing_systems#Cities)),
are
City | Hire Bicycle System | Number of Bicycles | Number of Docking Stations
--- | --- | --- | ---
London, U.K. | [Santander Cycles](https://tfl.gov.uk/modes/cycling/santander-cycles) | 13,600 | 839
San Francisco Bay Area, U.S.A. | [Ford GoBike](https://www.fordgobike.com/) | 7,000 | 540
New York City NY, U.S.A. | [citibike](https://www.citibikenyc.com/) | 7,000 | 458
Chicago IL, U.S.A. | [Divvy](https://www.divvybikes.com/) | 5,837 | 576
Montreal, Canada | [Bixi](https://bixi.com/) | 5,220 | 452
Washingon DC, U.S.A. | [Capital BikeShare](https://www.capitalbikeshare.com/) | 4,457 | 406
Guadalajara, Mexico | [mibici](https://www.mibici.net/) | 2,116 | 242
Minneapolis/St Paul MN, U.S.A. | [Nice Ride](https://www.niceridemn.com/) | 1,833 | 171
Boston MA, U.S.A. | [Hubway](https://www.bluebikes.com/) | 1,461 | 158
Philadelphia PA, U.S.A. | [Indego](https://www.rideindego.com) | 1,000 | 105
Los Angeles CA, U.S.A. | [Metro](https://bikeshare.metro.net/) | 1,000 | 65
These data include the places and times at which all trips start and end. Some
systems provide additional demographic data including years of birth and genders
of cyclists. The list of cities may be obtained with the `bike_cities()`
functions, and details of which include demographic data with
`bike_demographic_data()`.
The following provides a brief overview of package functionality. For more
detail, see the
[vignette](https://docs.ropensci.org/bikedata/articles/bikedata.html).
------
## 1 Installation
Currently a development version only which can be installed with the following
command,
```{r, eval=FALSE}
devtools::install_github("ropensci/bikedata")
```
```{r usage2, echo=FALSE, message=FALSE}
devtools::load_all (".")
#devtools::load_all (".", recompile=TRUE)
#devtools::document (".")
#goodpractice::gp ("bikedata")
#devtools::check (".")
#testthat::test_dir ("./tests/")
#Rcpp::compileAttributes()
```
and then loaded the usual way
```{r, eval = FALSE}
library (bikedata)
```
```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}
options(width = 120)
```
## 2 Usage
Data may downloaded for a particular city and stored in an `SQLite3` database
with the simple command,
```{r, echo = FALSE, eval = FALSE}
dl_bikedata (city = 'ny', data_dir = '/data/data/bikes/nyc-temp/',
dates = 201601:201603)
store_bikedata (bikedb = 'bikedb', data_dir = '/data/data/bikes/nyc-temp/')
```
```{r, eval = FALSE}
store_bikedata (city = 'nyc', bikedb = 'bikedb', dates = 201601:201603)
# [1] 2019513
```
where the `bikedb` parameter provides the name for the database, and the
optional argument `dates` can be used to specify a particular range of dates
(Jan-March 2016 in this example). The `store_bikedata` function returns the
total number of trips added to the specified database. The primary objects
returned by the `bikedata` packages are 'trip matrices' which contain aggregate
numbers of trips between each pair of stations. These are extracted from the
database with:
```{r, eval = FALSE}
tm <- bike_tripmat (bikedb = 'bikedb')
dim (tm); format (sum (tm), big.mark = ',')
```
```{r, echo = FALSE}
c (518, 518)
"2,019,513"
```
During the specified time period there were just over 2 million trips between
518 bicycle docking stations. Note that the associated databases can be very
large, particularly in the absence of `dates` restrictions, and extracting these
data can take quite some time.
Data can also be aggregated as daily time series with
```{r, eval = FALSE}
bike_daily_trips (bikedb = 'bikedb')
```
```{r, echo = FALSE}
n <- 87
dates <- c ('2016-01-01', '2016-01-02', '2016-01-03', '2016-01-04',
'2016-01-05', '2016-01-06', '2016-01-07', '2016-01-08',
'2016-01-08', '2016-01-10', rep (NA, n - 10))
nt <- c (11172, 14794, 15775, 19879, 18326, 24922, 28215, 29131, 21140, 14481,
rep (NA, n - 10))
tibble::tibble (date = dates, numtrips = nt)
```
A summary of all data contained in a given database can be produced as
```{r, eval = FALSE}
bike_summary_stats (bikedb = 'bikedb')
#> num_trips num_stations first_trip last_trip latest_files
#> ny 2019513 518 2016-01-01 00:00 2016-03-31 23:59 FALSE
```
The final field, `latest_files`, indicates whether the files in the database are
up to date with the latest published files.
### 2.1 Filtering trips by dates, times, and weekdays
Trip matrices can be constructed for trips filtered by dates, days of the week,
times of day, or any combination of these. The temporal extent of a `bikedata`
database is given in the above `bike_summary_stats()` function, or can be
directly viewed with
```{r, eval = FALSE}
bike_datelimits (bikedb = 'bikedb')
```
```{r, echo = FALSE}
res <- c ("2016-01-01 00:00", "2016-03-31 23:59")
names (res) <- c ("first", "last")
res
```
Additional temporal arguments which may be passed to the `bike_tripmat`
function include `start_date`, `end_date`, `start_time`, `end_time`, and
`weekday`. Dates and times may be specified in almost any format, but larger
units must always precede smaller units (so years before months before days;
hours before minutes before seconds). The following examples illustrate the
variety of acceptable formats for these arguments.
```{r, eval = FALSE}
tm <- bike_tripmat ('bikedb', start_date = "20160102")
tm <- bike_tripmat ('bikedb', start_date = 20160102, end_date = "16/02/28")
tm <- bike_tripmat ('bikedb', start_time = 0, end_time = 1) # 00:00 - 01:00
tm <- bike_tripmat ('bikedb', start_date = 20160101, end_date = "16,02,28",
start_time = 6, end_time = 24) # 06:00 - 23:59
tm <- bike_tripmat ('bikedb', weekday = 1) # 1 = Sunday
tm <- bike_tripmat ('bikedb', weekday = c('m', 'Th'))
tm <- bike_tripmat ('bikedb', weekday = 2:6,
start_time = "6:30", end_time = "10:15:25")
```
### 2.2 Filtering trips by demographic characteristics
Trip matrices can also be filtered by demographic characteristics through
specifying the three additional arguments of `member`, `gender`, and
`birth_year`. `member = 0` is equivalent to `member = FALSE`, and `1` equivalent
to `TRUE`. `gender` is specified numerically such that values of `2`, `1`, and
`0` respectively translate to female, male, and unspecified. The following lines
demonstrate this functionality
```{r, eval = FALSE}
sum (bike_tripmat ('bikedb', member = 0))
sum (bike_tripmat ('bikedb', gender = 'female'))
sum (bike_tripmat ('bikedb', weekday = 'sat', birth_year = 1980:1990,
gender = 'unspecified'))
```
### 3. Citation
```{r}
citation ("bikedata")
```
### 4. Code of Conduct
Please note that this project is released with a [Contributor Code of
Conduct](https://ropensci.org/code-of-conduct/). By contributing to this
project you agree to abide by its terms.
[](https://ropensci.org/)
Owner
- Name: rOpenSci
- Login: ropensci
- Kind: organization
- Email: info@ropensci.org
- Location: Berkeley, CA
- Website: https://ropensci.org/
- Twitter: rOpenSci
- Repositories: 307
- Profile: https://github.com/ropensci
JOSS Publication
bikedata
Published
December 05, 2017
Volume 2, Issue 20, Page 471
Authors
Richard Ellison
Institute of Transport and Logistics Studies, The University of Sydney, Australia
Institute of Transport and Logistics Studies, The University of Sydney, Australia
Tags
public hire bicycle open dataCodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "bikedata",
"description": "Download and aggregate data from all public hire bicycle systems which provide open data, currently including 'Santander' Cycles in London, U.K.; from the U.S.A., 'Ford GoBike' in San Francisco CA, 'citibike' in New York City NY, 'Divvy' in Chicago IL, 'Capital Bikeshare' in Washington DC, 'Hubway' in Boston MA, 'Metro' in Los Angeles LA, 'Indego' in Philadelphia PA, and 'Nice Ride' in Minnesota; 'Bixi' from Montreal, Canada; and 'mibici' from Guadalajara, Mexico.",
"name": "bikedata: Download and Aggregate Data from Public Hire Bicycle Systems",
"relatedLink": "https://docs.ropensci.org/bikedata/",
"codeRepository": "https://github.com/ropensci/bikedata",
"issueTracker": "https://github.com/ropensci/bikedata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.5.046",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.1.2 (2021-11-01)",
"author": [
{
"@type": "Person",
"givenName": "Mark",
"familyName": "Padgham",
"email": "mark.padgham@email.com",
"@id": "https://orcid.org/0000-0003-2172-5265"
},
{
"@type": "Person",
"givenName": "Richard",
"familyName": "Ellison"
},
{
"@type": "Person",
"givenName": "Tom",
"familyName": "Buckley"
}
],
"contributor": [
{
"@type": "Person",
"givenName": "Ryszard",
"familyName": "Szymański",
"email": "ryszard.szymanski@outlook.com"
},
{
"@type": "Organization",
"name": "SQLite Consortium"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Mark",
"familyName": "Padgham",
"email": "mark.padgham@email.com",
"@id": "https://orcid.org/0000-0003-2172-5265"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "dodgr",
"name": "dodgr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=dodgr"
},
{
"@type": "SoftwareApplication",
"identifier": "knitr",
"name": "knitr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=knitr"
},
{
"@type": "SoftwareApplication",
"identifier": "markdown",
"name": "markdown",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=markdown"
},
{
"@type": "SoftwareApplication",
"identifier": "rmarkdown",
"name": "rmarkdown",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=rmarkdown"
},
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 3.0"
},
"2": {
"@type": "SoftwareApplication",
"identifier": "brio",
"name": "brio",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=brio"
},
"3": {
"@type": "SoftwareApplication",
"identifier": "DBI",
"name": "DBI",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=DBI"
},
"4": {
"@type": "SoftwareApplication",
"identifier": "httr",
"name": "httr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=httr"
},
"5": {
"@type": "SoftwareApplication",
"identifier": "lubridate",
"name": "lubridate",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=lubridate"
},
"6": {
"@type": "SoftwareApplication",
"identifier": "magrittr",
"name": "magrittr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=magrittr"
},
"7": {
"@type": "SoftwareApplication",
"identifier": "methods",
"name": "methods"
},
"8": {
"@type": "SoftwareApplication",
"identifier": "Rcpp",
"name": "Rcpp",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=Rcpp"
},
"9": {
"@type": "SoftwareApplication",
"identifier": "readxl",
"name": "readxl",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=readxl"
},
"10": {
"@type": "SoftwareApplication",
"identifier": "reshape2",
"name": "reshape2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=reshape2"
},
"11": {
"@type": "SoftwareApplication",
"identifier": "RSQLite",
"name": "RSQLite",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=RSQLite"
},
"12": {
"@type": "SoftwareApplication",
"identifier": "tibble",
"name": "tibble",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=tibble"
},
"13": {
"@type": "SoftwareApplication",
"identifier": "xml2",
"name": "xml2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=xml2"
},
"SystemRequirements": "C++11"
},
"applicationCategory": "DataAccess",
"isPartOf": "https://ropensci.org",
"keywords": [
"bicycle-hire-systems",
"bike-hire-systems",
"bike-hire",
"bicycle-hire",
"database",
"bike-data",
"r",
"rstats",
"r-package",
"peer-reviewed"
],
"fileSize": "12713.754KB",
"citation": [
{
"@type": "ScholarlyArticle",
"datePublished": "2017",
"author": [
{
"@type": "Person",
"givenName": "Mark",
"familyName": "Padgham"
},
{
"@type": "Person",
"givenName": "Richard",
"familyName": "Ellison"
}
],
"name": "bikedata",
"identifier": "10.21105/joss.00471",
"url": "https://doi.org/10.21105/joss.00471",
"@id": "https://doi.org/10.21105/joss.00471",
"sameAs": "https://doi.org/10.21105/joss.00471",
"isPartOf": {
"@type": "PublicationIssue",
"issueNumber": "20",
"datePublished": "2017",
"isPartOf": {
"@type": [
"PublicationVolume",
"Periodical"
],
"volumeNumber": "2",
"name": "The Journal of Open Source Software"
}
}
}
],
"releaseNotes": "https://github.com/ropensci/bikedata/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/bikedata/blob/main/README.md",
"contIntegration": [
"https://github.com/ropensci/bikedata/actions?query=workflow%3AR-CMD-check",
"https://codecov.io/gh/ropensci/bikedata"
],
"developmentStatus": "https://www.repostatus.org/",
"review": {
"@type": "Review",
"url": "https://github.com/ropensci/software-review/issues/116",
"provider": "https://ropensci.org"
}
}
GitHub Events
Total
- Watch event: 2
- Fork event: 1
Last Year
- Watch event: 2
- Fork event: 1
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| mpadge | m****m@e****m | 621 |
| Richard Ellison | r****n@i****u | 11 |
| Tom Buckley | b****m@g****m | 8 |
| szymanskir | r****i@o****m | 3 |
| ropenscibot | m****t@g****m | 1 |
| Arfon Smith | a****n | 1 |
| Grace Li | g****8@b****u | 1 |
| Jim Hester | j****r@g****m | 1 |
| Maëlle Salmon | m****n@y****e | 1 |
| Scott Chamberlain | m****s@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 89
- Total pull requests: 15
- Average time to close issues: 26 days
- Average time to close pull requests: 3 days
- Total issue authors: 13
- Total pull request authors: 8
- Average comments per issue: 2.06
- Average comments per pull request: 2.93
- Merged pull requests: 13
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mpadge (66)
- tbuckl (7)
- ghost (3)
- Robinlovelace (3)
- richardellison (2)
- dpprdan (1)
- MathieuMarauri (1)
- geospatialmik (1)
- krlmlr (1)
- szymanskir (1)
- tbdv (1)
- JorisKlingen (1)
- RichardBean (1)
Pull Request Authors
- tbuckl (5)
- richardellison (3)
- szymanskir (2)
- maelle (1)
- arfon (1)
- graceli8 (1)
- jimhester (1)
- sckott (1)
Top Labels
Issue Labels
must do (14)
enhancement (13)
future stuff (5)
bug (4)
coz it oughta be done (4)
documentation (2)
perma-issue (1)
Pull Request Labels
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/extra-os.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 3.0 depends
- DBI * imports
- RSQLite * imports
- Rcpp * imports
- brio * imports
- httr * imports
- lubridate * imports
- magrittr * imports
- methods * imports
- readxl * imports
- reshape2 * imports
- tibble * imports
- xml2 * imports
- dodgr * suggests
- knitr * suggests
- markdown * suggests
- rmarkdown * suggests
- testthat * suggests
.hooks/description
cran
