Learn R Programming

⚠️There's a newer version (1.7.15-1) of this package.Take me there.

RSocrata

A tool for downloading Socrata datasets as R data frames

Provided with a URL to a dataset resource published on a Socrata webserver, or a Socrata SoDA (Socrata Open Data Application Program Interface) web API query, or a Socrata "human-friendly" URL, returns an R data frame. Converts dates to POSIX format. Supports CSV download file formats from Socrata. Manages the throttling of data returned from Socrata. RUnit test coverage.

Usage example 1

Usage example 2

Issues

Please report issues, request enhancements or fork us at the City of Chicago github.

Change log

1.1 Add check for valid Socrata resource URL. Add check for supported download file format. Add support for Socrata short dates.

1.2 Use comma-separated file format for Socrata downloads.

1.3 Added support for human-readable URL.

1.4 Add json file format for Socrata downloads. Switch to RJSONIO rom rjson.

Copy Link

Version

Install

install.packages('RSocrata')

Monthly Downloads

315

Version

1.4

License

MIT + file LICENSE

Maintainer

Hugh J Devlin

Last Published

August 31st, 2023

Functions in RSocrata (1.4)

posixify

Convert Socrata calendar_date string to POSIX
logMsg

Time-stamped message
read.socrata

Get a full Socrata data set as an R data frame
fieldName

Convert Socrata human-readable column name to field name