Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects. 'OSM' data are extracted from the 'Overpass' web server (<https://overpass-api.de/>) and processed with very fast 'C++' routines for return to 'R'.
Fast, Dependency-Free Geodesic Distance Calculations
Dependency-free, ultra fast calculation of geodesic distances. Includes the reference nanometre-accuracy geodesic distances of Karney (2013) <doi:10.1007/s00190-012-0578-z>, as used by the 'sf' package, as well as Haversine and Vincenty distances. Default distance measure is the "Mapbox cheap ruler" which is generally more accurate than Haversine or Vincenty for distances out to a few hundred kilometres, and is considerably faster. The main function accepts one or two inputs in almost any generic rectangular form, and returns either matrices of pairwise distances, or vectors of sequential distances.
Advice on R Package Building
Give advice about good practices when building R packages. Advice includes functions and syntax to avoid, package structure, code complexity, code formatting, etc.
Distances on Directed Graphs
Distances on dual-weighted directed graphs using priority-queue shortest paths (Padgham (2019) <doi:10.32866/6945>). Weighted directed graphs have weights from A to B which may differ from those from B to A. Dual-weighted directed graphs have two sets of such weights. A canonical example is a street network to be used for routing in which routes are calculated by weighting distances according to the type of way and mode of transport, yet lengths of routes must be calculated from direct distances.
Acknowledge all Contributors to a Project
Acknowledge all contributors to a project via a single function call. The function appends to a 'README' or other specified file(s) a table with names of all individuals who contributed via code or repository issues. The package also includes several additional functions to extract and quantify contributions to any repository.
Metrics of R Packages
Static code analyses for R packages using the external code-tagging libraries 'ctags' and 'gtags'. Static analyses enable packages to be analysed very quickly, generally a couple of seconds at most. The package also provides access to a database generating by applying the main function to the full 'CRAN' archive, enabling the statistical properties of any package to be compared with all other 'CRAN' packages.
Routing with 'GTFS' (General Transit Feed Specification) Data
Use 'GTFS' (General Transit Feed Specification) data for routing from nominated start and end stations, for extracting 'isochrones', and travel times from any nominated start station to all other stations.
Print Maps, Draw on Them, Scan Them Back in
Enables preparation of maps to be printed and drawn on. Modified maps can then be scanned back in, and hand-drawn marks converted to spatial objects.
Trace Function Parameter Types
The 'R' language includes a set of defined types, but the language itself is "absurdly dynamic" (Turcotte & Vitek (2019) <doi:10.1145/3340670.3342426>), and lacks any way to specify which types are expected by any expression. The 'typetracer' package enables code to be traced to extract detailed information on the properties of parameters passed to 'R' functions. 'typetracer' can trace individual functions or entire packages.
Download and Aggregate Data from Public Hire Bicycle Systems
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.
Bespoke Images of 'OpenStreetMap' Data
Bespoke images of 'OpenStreetMap' ('OSM') data and data visualisation using 'OSM' objects.
Find R Packages Matching Either Descriptions or Other R Packages
Find R packages from 'CRAN', 'rOpenSci', or 'Bioconductor' corpora. Packages can be matched to general text descriptions, to names of installed packages, or to local paths to entire source repositories. The package is used to list the most similar packages for each new submission to the 'rOpenSci' software peer-review program <doi:10.5281/zenodo.18885936>.
Plumber API to report package structure and function
Plumber API to report package structure and function.
Compare Spatial Structure of Hotspots with Neutral Models
Analyses whether the statistical properties of a spatial pattern of hotspots may be reproduced with a simple neutral model.
Calculates the N-Fold Convolution of Two Pareto Distributions
Calculates the n-fold convolution of two Pareto distributions using the techniques devised by Colin Ramsay.
rOpenSci Package Checks
Check whether a package is ready for submission to rOpenSci's peer review system.
Metrics for Your GitHub Organization
Metrics for your GitHub organization. Call one function to generate an interactive dashboard displaying the state of your organization.
Metrics for Your Code Repository
Metrics for your code repository. Call one function to generate an interactive dashboard displaying the state of your code.
Convert R Package Documentation to a 'readthedocs' Website
Convert R package documentation to a 'readthedocs' website.
Holds A More Spacious Styleguide
Adds a space before parentheses & co, on top of more common tidyverse-style guide conventions.
R port of redcap
R port of redcap (Regionalization with dynamically constrained agglomerative clustering and partitioning).
Gender-Conscious Routing Along Streets Named After Women Rather Than Men
Gender-conscious routing along streets named after women rather than men.
Moveability statistics for any specified city
Moveability statistics for any specified city.
Efficient Identification of Neighbourhoods within Networks
Algorithm for efficient identification of neighbourhoods within networks.
Model of pedestrian flows throughout New York City
Model of pedestrian flows throughout New York City.
Truncated Normal Distribution
Truncated Normal Distributions can be generated by other packages such as msm, but these are slow. tnorm is a faster C++ replacement.
Copyright © 2019--26 mark padgham