Skip to content

Commit

Permalink
Added Tudor dynasty relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
lmullen committed Oct 25, 2014
1 parent 36457ce commit 51647a3
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: historydata
Title: historydata: datasets for historians
Version: 0.1.9008
Version: 0.1.9009
Authors@R: c(person("Lincoln", "Mullen",
role = c("aut", "cre"),
email = "[email protected]"))
Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ historydata 0.1
* Added paulist_missions: Missions held by the Paulists Fathers,1851-1893.

* Added judges_people and judges_appointments: Federal judges, 1789--present.

* Added tudors: relationships among the Tudor dynasty.
17 changes: 17 additions & 0 deletions R/tudors.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#' Tudor dynasty
#'
#' Spousal and parent/child relationships among selected members of the Tudor
#' dynasty, suitable for network analysis.
#'
#' @section Variables:
#'
#' \itemize{
#'
#' \item \code{person_1}, \code{person_2}: The two people in the relationship.
#'
#' \item \code{relationship}: The type of relationship. }
#'
#' @format A data frame with 35 observations of 3 variables.
#' @examples
#' data(tudors)
"tudors"
5 changes: 5 additions & 0 deletions data-raw/tudors.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
library(dplyr)
library(devtools)
tudors <- read.csv("data-raw/tudors.csv", stringsAsFactors = FALSE) %>%
tbl_df
use_data(tudors, overwrite = TRUE)
36 changes: 36 additions & 0 deletions data-raw/tudors.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
person_1,person_2,relationship
Henry VII,Elizabeth of York,spouse
Arthur Tudor,Catharine of Aragon,spouse
Henry VIII,Catharine of Aragon,spouse
Henry VIII,Anne Boleyn,spouse
Henry VIII,Jane Seymour,spouse
Henry VIII,Anne of Cleves,spouse
Henry VIII,Katherine Howard,spouse
Henry VIII,Catherine Parr,spouse
Margaret Tudor,James IV,spouse
Mary Tudor,Louis XII,spouse
Mary Tudor,Charles Duke of Suffok,spouse
James V,Mary of Guise,spouse
Mary Queen of Scots,Frances II of France,spouse
Mary Queen of Scots,Henry Lord Darnley,spouse
Mary I,Philip II,spouse
Arthur Tudor,Henry VII,child
Arthur Tudor,Elizabeth of York,child
Henry VIII,Henry VII,child
Henry VIII,Elizabeth of York,child
Margaret Tudor,Henry VII,child
Margaret Tudor,Elizabeth of York,child
Mary Tudor,Henry VII,child
Mary Tudor,Elizabeth of York,child
James V,James IV,child
James V,Margaret Tudor,child
Mary Queen of Scots,Mary of Guise,child
Mary Queen of Scots,James V,child
James VI/I,Mary Queen of Scots,child
James VI/I,Henry Lord Darnley,child
Mary I,Catharine of Aragon,child
Mary I,Henry VIII,child
Elizabeth I,Anne Boleyn,child
Elizabeth I,Henry VIII,child
Edward VI,Jane Seymour,child
Edward VI,Henry VIII,child
Binary file added data/tudors.rda
Binary file not shown.
27 changes: 27 additions & 0 deletions man/tudors.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
% Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{tudors}
\alias{tudors}
\title{Tudor dynasty}
\format{A data frame with 35 observations of 3 variables.}
\usage{
tudors
}
\description{
Spousal and parent/child relationships among selected members of the Tudor
dynasty, suitable for network analysis.
}
\section{Variables}{


\itemize{

\item \code{person_1}, \code{person_2}: The two people in the relationship.

\item \code{relationship}: The type of relationship. }
}
\examples{
data(tudors)
}
\keyword{datasets}

0 comments on commit 51647a3

Please sign in to comment.