The Stanford Libraries (SL) offer a number of datasets for social science research. This is a document detailing if and how those can be accessed when using R. I am also adding packages tp access social science data beyond Stanford. It is work in progress. (Download as pdf.)
read.csv(url("http:..."))to load CSV from their data portal.
sf-ready data frames
US Bureau of Labor Statistics (BLS):
Medicare public files:
Social Media for Network Analysis:
United States Treasury
enigma: a client to interact with the Enigma API, including getting the data and metadata for datasets as well as collecting statistics on datasets. (Note that there is another site: Enigma Public “the world’s broadest collection of public data” which provides API access as well, not sure how the two are related with regard to this package.)
pdfetch: Economic and financial time series from public sources, including the St Louis Fed’s FRED system, Yahoo Finance, the US Bureau of Labor Statistics, the US Energy Information Administration, the World Bank, Eurostat, the European Central Bank, the Bank of England, the UK’s Office of National Statistics, Deutsche Bundesbank, and INSEE.
eechidna: 2013 and 2016 Australian Federal Election (House of Representatives) and the 2011 Australian Census
rcrossref: Text mining client for Crossref. Includes functions for getting getting links to full text of articles, fetching full text articles from those links or Digital Object Identifiers (DOIs), and text extraction from PDFs.
rcrossref is for metadata.
USAboundaries: Historical boundaries of the United States. Map the United States (or the colonies that became the United States) on any date from 1629 to 2000. Contains both county and state/territory level polygons.
jstor: Import journal data from DfR (JSTOR)
RefManageR: Import and work with bibliographic references. Stores with
BibLaTeX references, interfaces with
Zotero, extracts references from locally stored PDF and generates bibliographies for
tidyquant: A wrapper to various ‘xts’, ‘zoo’, ‘quantmod’, ‘TTR’ and ‘PerformanceAnalytics’ package functions that returns the objects in the tidy ‘tibble’ format.
refnet: Read, organize, geocode, analyze, and visualize Clarivate Web of Knowledge/Web of Science, format reference data files for scientometric, social network, and Science of Science analyses. Not on CRAN.
suppdata: Downloading Supplementary Data from Published Manuscripts
bikedatadata from public hire bicycle systems,including London, New York, Chicago, Washington DC, Boston, Los Angeles, and Philadelphia.
FedData: Download geospatial Data from federated data sources, including the The National Elevation Dataset digital elevation models, the Global Historical Climatology Network, the National Land Cover Database, and more.
getlandsat: Get Landsat 8 Data from Amazon Public Data Sets
geonames: Interface to the “Geonames” Spatial Query Web Service
MODIStsp: automates the creation of time series of rasters derived from MODIS Land Products data
stats19Open Road Traffic Casualty Data from Great Britain
rdataretriever: Provides an R interface to the Data Retriever via the Data Retriever’s command line interface. The Data Retriever automates the tasks of finding, downloading, and cleaning public datasets, and then stores them in a local database.
(A number of packages are from https://ropensci.org/. You may want to check there for new ones.)