These sample data sets are intended for historians learning R. They include population, institutional, religious, military, and prosopographical data suitable for mapping, quantitative analysis, and network analysis.
To install the latest r-universe build:
install.packages('historydata', repos = c('https://ropensci.r-universe.dev'))
To install the package from CRAN:
install.packages("historydata")
You can install the development version from GitHub with {devtools}:
# install.packages("devtools")
devtools::install_github("ropensci/historydata")
See the package index reference for all the datasets in the package and their documentation. You can also use R’s builtin help:
help(package = historydata)
To load a dataset directly into your environment:
data(catholic_dioceses)
head(catholic_dioceses)
#> diocese rite lat long event date
#> 1 Baltimore, Maryland Latin 39.29038 -76.61219 erected 1789-04-06
#> 2 New Orleans, Louisiana Latin 29.95107 -90.07153 erected 1793-04-25
#> 3 Boston, Massachusetts Latin 42.35843 -71.05977 erected 1808-04-08
#> 4 Louisville, Kentucky Latin 38.25266 -85.75846 erected 1808-04-08
#> 5 New York, New York Latin 40.71435 -74.00597 erected 1808-04-08
#> 6 Philadelphia, Pennsylvania Latin 39.95233 -75.16379 erected 1808-04-08
This project is released under the MIT License. See LICENSE.md for details.