Skip to content

Commit cbdbf4e

Browse files
connect Blanche of Lancaster
1 parent 1f05663 commit cbdbf4e

3 files changed

Lines changed: 114 additions & 17 deletions

File tree

data-raw/df_warroses.R

Lines changed: 91 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,23 @@ df <- ped2fam(raw_df, personID = "id") %>%
9696
TRUE ~ name
9797
),
9898
dadID = case_when(
99-
personID == 1 ~ 115, # Edward III's father was Edward II, who is missing from the original dataset but is a critical ancestor for the pedigree structure. We add him as a new row with personID = 115 (see below).
99+
personID == 1 ~ 115, # Edward III's father was Edward II
100100
TRUE ~ dadID
101101
),
102102
momID = case_when(
103103
personID == 1 ~ 116, # Edward III's mother was Isabella of France
104104
TRUE ~ momID
105105
)
106106
) %>%
107+
addPersonToPed(
108+
personID = 9, name = "Blanche of Lancaster",
109+
sex = "F",
110+
momID = 151, # Isabel of Beaumont
111+
dadID = 107, # Henry of Grosmont, Duke of Lancaster
112+
url = "https://en.wikipedia.org/wiki/Blanche_of_Lancaster",
113+
overwrite = TRUE
114+
) %>%
107115
# ── New additions: children of Edward IV + Elizabeth Woodville ───────────────
108-
# SVG notes "others" — these children complete the York generation
109116
addPersonToPed(
110117
personID = 96, name = "Mary of York",
111118
sex = "F", momID = 56, dadID = 55,
@@ -199,7 +206,7 @@ df <- ped2fam(raw_df, personID = "id") %>%
199206
addPersonToPed(
200207
personID = 111, name = "Edmund Crouchback",
201208
sex = "M",
202-
momID = NA,
209+
momID = 139, # Eleanor of Provence
203210
dadID = 112, # Henry III
204211
url = "https://en.wikipedia.org/wiki/Edmund_Crouchback"
205212
) %>%
@@ -221,16 +228,16 @@ df <- ped2fam(raw_df, personID = "id") %>%
221228
addPersonToPed(
222229
personID = 114, name = "John, King of England",
223230
sex = "M",
224-
momID = NA,
225-
dadID = NA,
231+
momID = 141, # Eleanor, Duchess of Aquitaine
232+
dadID = 140, # Henry II, King of England
226233
url = "https://en.wikipedia.org/wiki/John,_King_of_England"
227234
) %>%
228235
# edward ii
229236
addPersonToPed(
230237
personID = 115, name = "Edward II",
231238
sex = "M",
232-
momID = NA, # Eleanor of Castile
233-
dadID = NA, # Edward I
239+
momID = 150, # Eleanor of Castile
240+
dadID = 149, # Edward I
234241
url = "https://en.wikipedia.org/wiki/Edward_II_of_England"
235242
) %>%
236243
# Isabella of France
@@ -394,8 +401,81 @@ df <- ped2fam(raw_df, personID = "id") %>%
394401
personID = 138, name = "Margaret Plantagenet, Countess of Salisbury",
395402
sex = "F", momID = 60, dadID = 61,
396403
url = "https://en.wikipedia.org/wiki/Margaret_Pole,_Countess_of_Salisbury"
404+
) %>%
405+
addPersonToPed(
406+
personID = 139, name = "Eleanor of Provence",
407+
sex = "F", momID = NA, dadID = NA,
408+
url = "https://en.wikipedia.org/wiki/Eleanor_of_Provence"
409+
) %>%
410+
addPersonToPed(
411+
personID = 140, name = "Henry II, King of England",
412+
sex = "M", momID = 142, # Empress Matilda
413+
dadID = 143, # Geoffrey Plantagenet, Count of Anjou
414+
url = "https://en.wikipedia.org/wiki/Henry_II_of_England"
415+
) %>%
416+
addPersonToPed(
417+
personID = 141, name = "Eleanor, Duchess of Aquitaine",
418+
sex = "F", momID = NA,
419+
dadID = NA,
420+
url = "https://en.wikipedia.org/wiki/Eleanor_of_Aquitaine"
421+
) %>%
422+
addPersonToPed(
423+
personID = 142, name = "Empress Matilda",
424+
sex = "F", momID = 148, # Matilda of Scotland
425+
dadID = 144, # Henry I, King of England
426+
url = "https://en.wikipedia.org/wiki/Empress_Matilda"
427+
) %>%
428+
addPersonToPed(
429+
personID = 143, name = "Geoffrey Plantagenet, Count of Anjou",
430+
sex = "M", momID = NA, dadID = NA,
431+
url = "https://en.wikipedia.org/wiki/Geoffrey_Plantagenet,_Count_of_Anjou"
432+
) %>%
433+
addPersonToPed(
434+
personID = 144, name = "Henry I, King of England",
435+
sex = "M", momID = 145, # Matilda of Flanders
436+
dadID = 146, # William the Conqueror
437+
url = "https://en.wikipedia.org/wiki/Henry_I_of_England"
438+
) %>%
439+
addPersonToPed(
440+
personID = 145, name = "Matilda of Flanders",
441+
sex = "F", momID = NA, dadID = NA,
442+
url = "https://en.wikipedia.org/wiki/Matilda_of_Flanders"
443+
) %>%
444+
addPersonToPed(
445+
personID = 146, name = "William the Conqueror",
446+
sex = "M", momID = NA, dadID = NA,
447+
url = "https://en.wikipedia.org/wiki/William_the_Conqueror"
448+
) %>%
449+
addPersonToPed(
450+
personID = 147, name = "William Adelin",
451+
sex = "M", momID = 148, # Matilda of Scotland
452+
dadID = 144, # Henry I, King of England
453+
url = "https://en.wikipedia.org/wiki/William_Adelin"
454+
) %>%
455+
addPersonToPed(
456+
personID = 148, name = "Matilda of Scotland",
457+
sex = "F", momID = NA, # Margaret of Wessex
458+
dadID = NA, # Malcolm III of Scotland
459+
url = "https://en.wikipedia.org/wiki/Matilda_of_Scotland"
460+
) %>%
461+
addPersonToPed(
462+
personID = 149, name = "Edward I of England",
463+
sex = "M", momID = 139, # Eleanor of Provence
464+
dadID = 112, # Henry III
465+
url = "https://en.wikipedia.org/wiki/Edward_I_of_England"
466+
) %>%
467+
addPersonToPed(
468+
personID = 150, name = "Eleanor of Castile",
469+
sex = "F", momID = NA, dadID = NA,
470+
url = "https://en.wikipedia.org/wiki/Eleanor_of_Castile"
471+
) %>%
472+
addPersonToPed(
473+
personID = 151, name = "Isabel of Beaumont",
474+
sex = "F", momID = NA, dadID = NA,
475+
url = "https://en.wikipedia.org/wiki/Isabel_of_Beaumont"
397476
)
398477

478+
399479
## Recalculate family groups after all modifications ---------------------------
400480

401481
war_of_the_roses <- df %>%
@@ -421,6 +501,10 @@ df_repaired <- checkSex(war_of_the_roses,
421501
rename(personID = ID)
422502

423503

504+
505+
506+
507+
424508
## (Optional) plot — wrapped in if (FALSE) so it never runs automatically ------
425509

426510
if (FALSE) {

data-raw/war_of_the_roses.csv

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ id,famID,momID,dadID,name,sex,url,twinID,zygosity
77
6,1,NA,NA,Enguerrand VII Lord of Coucy,M,https://en.wikipedia.org/wiki/Enguerrand_VII_de_Coucy,NA,NA
88
7,1,NA,NA,Elizabeth de Burgh,F,https://en.wikipedia.org/wiki/Elizabeth_de_Burgh%2C_4th_Countess_of_Ulster,NA,NA
99
8,1,2,1,Lionel of Antwerp,M,https://en.wikipedia.org/wiki/Lionel_of_Antwerp%2C_Duke_of_Clarence,NA,NA
10-
9,1,NA,NA,Blanche of Lancaster,F,https://en.wikipedia.org/wiki/Blanche_of_Lancaster,NA,NA
10+
9,1,151,107,Blanche of Lancaster,F,https://en.wikipedia.org/wiki/Blanche_of_Lancaster,NA,NA
1111
10,1,2,1,John of Gaunt,M,https://en.wikipedia.org/wiki/John_of_Gaunt,NA,NA
1212
11,1,NA,NA,Constance of Castile,F,https://en.wikipedia.org/wiki/Constance_of_Castile%2C_Duchess_of_Lancaster,NA,NA
1313
12,1,NA,NA,Katherine Swynford,F,https://en.wikipedia.org/wiki/Katherine_Swynford,NA,NA
@@ -105,15 +105,15 @@ id,famID,momID,dadID,name,sex,url,twinID,zygosity
105105
104,1,65,64,"Mary Tudor, Queen of France",F,"https://en.wikipedia.org/wiki/Mary_Tudor,_Queen_of_France",NA,NA
106106
105,1,5,6,"Marie I de Coucy, Countess of Soissons",F,"https://en.wikipedia.org/wiki/Marie_I_de_Coucy,_Countess_of_Soissons",NA,NA
107107
106,1,11,10,Catherine of Lancaster,F,https://en.wikipedia.org/wiki/Catherine_of_Lancaster,NA,NA
108-
107,6,109,108,"Henry of Grosmont, Duke of Lancaster",M,"https://en.wikipedia.org/wiki/Henry_of_Grosmont,_Duke_of_Lancaster",NA,NA
109-
108,6,110,111,"Henry, 3rd Earl of Lancaster",M,"https://en.wikipedia.org/wiki/Henry,_3rd_Earl_of_Lancaster",NA,NA
110-
109,6,NA,NA,Maud Chaworth,F,https://en.wikipedia.org/wiki/Maud_Chaworth,NA,NA
111-
110,6,NA,NA,Blanche of Artois,F,https://en.wikipedia.org/wiki/Blanche_of_Artois,NA,NA
112-
111,6,NA,112,Edmund Crouchback,M,https://en.wikipedia.org/wiki/Edmund_Crouchback,NA,NA
113-
112,6,113,114,Henry III,M,https://en.wikipedia.org/wiki/Henry_III_of_England,NA,NA
114-
113,6,NA,NA,Isabella of Angoulême,F,https://en.wikipedia.org/wiki/Isabella_of_Angoul%C3%AAme,NA,NA
115-
114,6,NA,NA,"John, King of England",M,"https://en.wikipedia.org/wiki/John,_King_of_England",NA,NA
116-
115,1,NA,NA,Edward II,M,https://en.wikipedia.org/wiki/Edward_II_of_England,NA,NA
108+
107,1,109,108,"Henry of Grosmont, Duke of Lancaster",M,"https://en.wikipedia.org/wiki/Henry_of_Grosmont,_Duke_of_Lancaster",NA,NA
109+
108,1,110,111,"Henry, 3rd Earl of Lancaster",M,"https://en.wikipedia.org/wiki/Henry,_3rd_Earl_of_Lancaster",NA,NA
110+
109,1,NA,NA,Maud Chaworth,F,https://en.wikipedia.org/wiki/Maud_Chaworth,NA,NA
111+
110,1,NA,NA,Blanche of Artois,F,https://en.wikipedia.org/wiki/Blanche_of_Artois,NA,NA
112+
111,1,139,112,Edmund Crouchback,M,https://en.wikipedia.org/wiki/Edmund_Crouchback,NA,NA
113+
112,1,113,114,Henry III,M,https://en.wikipedia.org/wiki/Henry_III_of_England,NA,NA
114+
113,1,NA,NA,Isabella of Angoulême,F,https://en.wikipedia.org/wiki/Isabella_of_Angoul%C3%AAme,NA,NA
115+
114,1,141,140,"John, King of England",M,"https://en.wikipedia.org/wiki/John,_King_of_England",NA,NA
116+
115,1,150,149,Edward II,M,https://en.wikipedia.org/wiki/Edward_II_of_England,NA,NA
117117
116,1,NA,NA,Isabella of France,F,https://en.wikipedia.org/wiki/Isabella_of_France,NA,NA
118118
117,1,NA,NA,"Henry Percy, Hotspur",M,https://en.wikipedia.org/wiki/Henry_Percy_(Hotspur),NA,NA
119119
118,1,21,72,Elizabeth Mortimer,F,https://en.wikipedia.org/wiki/Elizabeth_Mortimer,NA,NA
@@ -137,3 +137,16 @@ id,famID,momID,dadID,name,sex,url,twinID,zygosity
137137
136,1,NA,NA,"Edmund of Stafford, 5th Earl of Stafford",M,"https://en.wikipedia.org/wiki/Edmund_of_Stafford,_5th_Earl_of_Stafford",NA,NA
138138
137,1,60,61,"Edward, Earl of Warwick",M,"https://en.wikipedia.org/wiki/Edward_Plantagenet,_17th_Earl_of_Warwick",NA,NA
139139
138,1,60,61,"Margaret Plantagenet, Countess of Salisbury",F,"https://en.wikipedia.org/wiki/Margaret_Pole,_Countess_of_Salisbury",NA,NA
140+
139,1,NA,NA,Eleanor of Provence,F,https://en.wikipedia.org/wiki/Eleanor_of_Provence,NA,NA
141+
140,1,142,143,"Henry II, King of England",M,https://en.wikipedia.org/wiki/Henry_II_of_England,NA,NA
142+
141,1,NA,NA,"Eleanor, Duchess of Aquitaine",F,https://en.wikipedia.org/wiki/Eleanor_of_Aquitaine,NA,NA
143+
142,1,148,144,Empress Matilda,F,https://en.wikipedia.org/wiki/Empress_Matilda,NA,NA
144+
143,1,NA,NA,"Geoffrey Plantagenet, Count of Anjou",M,"https://en.wikipedia.org/wiki/Geoffrey_Plantagenet,_Count_of_Anjou",NA,NA
145+
144,1,145,146,"Henry I, King of England",M,https://en.wikipedia.org/wiki/Henry_I_of_England,NA,NA
146+
145,1,NA,NA,Matilda of Flanders,F,https://en.wikipedia.org/wiki/Matilda_of_Flanders,NA,NA
147+
146,1,NA,NA,William the Conqueror,M,https://en.wikipedia.org/wiki/William_the_Conqueror,NA,NA
148+
147,1,148,144,William Adelin,M,https://en.wikipedia.org/wiki/William_Adelin,NA,NA
149+
148,1,NA,NA,Matilda of Scotland,F,https://en.wikipedia.org/wiki/Matilda_of_Scotland,NA,NA
150+
149,1,139,112,Edward I of England,M,https://en.wikipedia.org/wiki/Edward_I_of_England,NA,NA
151+
150,1,NA,NA,Eleanor of Castile,F,https://en.wikipedia.org/wiki/Eleanor_of_Castile,NA,NA
152+
151,1,NA,NA,Isabel of Beaumont,F,https://en.wikipedia.org/wiki/Isabel_of_Beaumont,NA,NA

data/war_of_the_roses.rda

236 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)