diff --git a/apple-touch-icon-120x120.png b/apple-touch-icon-120x120.png index 62f6a6d..e7043b7 100644 Binary files a/apple-touch-icon-120x120.png and b/apple-touch-icon-120x120.png differ diff --git a/apple-touch-icon-152x152.png b/apple-touch-icon-152x152.png index 4e32b33..0c8febe 100644 Binary files a/apple-touch-icon-152x152.png and b/apple-touch-icon-152x152.png differ diff --git a/apple-touch-icon-180x180.png b/apple-touch-icon-180x180.png index a590326..623e5c6 100644 Binary files a/apple-touch-icon-180x180.png and b/apple-touch-icon-180x180.png differ diff --git a/apple-touch-icon-60x60.png b/apple-touch-icon-60x60.png index cd9fe4a..b8a63e1 100644 Binary files a/apple-touch-icon-60x60.png and b/apple-touch-icon-60x60.png differ diff --git a/apple-touch-icon-76x76.png b/apple-touch-icon-76x76.png index f45ec90..8ab636d 100644 Binary files a/apple-touch-icon-76x76.png and b/apple-touch-icon-76x76.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png index 780273f..5899e57 100644 Binary files a/apple-touch-icon.png and b/apple-touch-icon.png differ diff --git a/authors.html b/authors.html index f96ed50..8cfe2ba 100644 --- a/authors.html +++ b/authors.html @@ -54,12 +54,12 @@

Citation

Source: DESCRIPTION

Buongiorno S (2023). -oldbailey: For Accessing The Old Bailey Historical Criminal Trials. +oldbailey: For Accessing the Old Bailey Open Data. https://github.com/rOpenGov/oldbailey, https://ropengov.github.io/oldbailey/.

@Manual{,
-  title = {oldbailey: For Accessing The Old Bailey Historical Criminal Trials},
+  title = {oldbailey: For Accessing the Old Bailey Open Data},
   author = {Steph Buongiorno},
   year = {2023},
   note = {https://github.com/rOpenGov/oldbailey,
diff --git a/favicon-16x16.png b/favicon-16x16.png
index e1dee81..12a9925 100644
Binary files a/favicon-16x16.png and b/favicon-16x16.png differ
diff --git a/favicon-32x32.png b/favicon-32x32.png
index 0534263..d532858 100644
Binary files a/favicon-32x32.png and b/favicon-32x32.png differ
diff --git a/index.html b/index.html
index be52cd8..f9822fe 100644
--- a/index.html
+++ b/index.html
@@ -13,7 +13,7 @@
     crime locations, and dates. Optional parameters allow users to specify
     the number of results, whether these results contain key terms, and
     trial dates.">
-For Accessing The Old Bailey Historical Criminal Trials • oldbailey
+For Accessing the Old Bailey Open Data • oldbailey
 
 
 
@@ -25,7 +25,7 @@
 
 
 
-
+
               1 defgen select female         2 defgen select indeterminate  3 defgen select male           4 offcat select breakingPeace  5 offcat select damage         6 offcat select deception      7 offcat select kill           8 offcat select miscellaneous  9 offcat select royalOffences 10 offcat select sexual        11 offcat select theft         12 offcat select violentTheft"},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"usage","dir":"","previous_headings":"Return Old Bailey Trials in Two Steps","what":"Usage","title":"For Accessing The Old Bailey Historical Criminal Trials","text":"find_trials() Note: “cat” “term” must specified together. (otherwords, category specified without term, vice-versa.) parse_trials() old_bailey_api_terms()","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"parsing-old-bailey-xml","dir":"","previous_headings":"","what":"Parsing Old Bailey XML","title":"For Accessing The Old Bailey Historical Criminal Trials","text":"XML parser handles issues XML tags adding valuable metadata records. Many XML tags ambiguous inconsistent, tagging conventions change different periods. XML tags often miss person names, don’t make distinction names people speaking names people mentioned others.","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"crime-subcategories","dir":"","previous_headings":"","what":"Crime Subcategories","title":"For Accessing The Old Bailey Historical Criminal Trials","text":"Animal Theft Arson Assault Assault Intent Assault Sodomitical Intent Bankrupcy Barratry Bigamy Burglary Coining Offences Concealing Birth Conspiracy Embezzlement Extortion Forgery Fraud Game Law Offence Grand Larceny Habitual Criminal Highway Robbery House Breaking Illegal Abortion Indecent Assault Infanticide Keeping Brothel Kidnapping Libel Mail Manslaughter Murder Perjury Perverting Justice Petty Larceny Petty Treason Piracy Pocketpicking Rape Receiving Religious Offences Return Transportation Riot Robbery Seditious Libel Seditious Words Seducing Allegiance Shop Lifting Simple Larceny Sodomy Stealing Master Tax Offences Theft Place Threatening Behaviour Treason Vagabond Wounding","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"punishment-subcategories","dir":"","previous_headings":"","what":"Punishment Subcategories","title":"For Accessing The Old Bailey Historical Criminal Trials","text":"Branding Branding Cheek Burning Death Dissection Drawn Quartered Executed Fine Forfeiture Hanging Chains Hard Labour House Correction Insanity Military Naval Duties Newgate Institution Pardon Penal Servitude Pillory Preventive Detention Private Whipping Public Whipping Respited Respited Pregnancy Sentence Respited Sureties Whipping","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"citation","dir":"","previous_headings":"Punishment Subcategories","what":"Citation","title":"For Accessing The Old Bailey Historical Criminal Trials","text":"Please cite package follows: Buongiorno S (2023). oldbailey: Accessing Old Bailey Open Data. https://github.com/stephbuon/oldbailey, https://ropengov.github.io/oldbailey/, https://github.com/rOpenGov/oldbailey. BibTeX: See website projects. Disclaimer package officially related endorsed Old Bailey Online Government United Kingdom.","code":"@Manual{,   title = {oldbailey: For Accessing The Old Bailey Open Data.},   author = {Steph Buongiorno},   year = {2023},   note = {https://github.com/stephbuon/oldbailey, https://ropengov.github.io/oldbailey/, https://github.com/rOpenGov/oldbailey}, }"},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":null,"dir":"Reference","previous_headings":"","what":"Find Old Bailey Trials — find_trials","title":"Find Old Bailey Trials — find_trials","text":"finding Old Bailey trial data.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Find Old Bailey Trials — find_trials","text":"","code":"find_trials(   n_results = \"all\",   cat = NA,   term = NA   )"},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Find Old Bailey Trials — find_trials","text":"n_results number results return. default, results returned. cat Find trials pertaining category. (optional). term Find trials pertaining term. (optional).","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Find Old Bailey Trials — find_trials","text":"Dataframe containing API pull XML addresses Old Bailey Trials corresponding search criteria.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Find Old Bailey Trials — find_trials","text":"","code":"# Return a dataframe with 5 trials. trials <- find_trials(n_results = 5) head(trials) #> [[1]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-1\" #>  #> [[2]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-2\" #>  #> [[3]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-3\" #>  #> [[4]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-4\" #>  #> [[5]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-5\" #>   # Return a dataframe with 5 trials on deception.  trials <- find_trials(n_results = 5, cat = \"offcat\", term = \"deception\") head(trials) #> [[1]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16750707-10\" #>  #> [[2]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16760114-14\" #>  #> [[3]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16840116-28\" #>  #> [[4]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16840409-32\" #>  #> [[5]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16840515-6\" #>"},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":null,"dir":"Reference","previous_headings":"","what":"View Old Bailey API Terms — old_bailey_api_terms","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"viewing terms categories.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"","code":"old_bailey_api_terms(   cat = NULL   )"},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"cat Return terms corresponding category crime. default, terms categories returned.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"Dataframe containing API pull terms categories.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"","code":"# Return a dataframe with the terms corresponding to defendant gender or offensive category. terms <- old_bailey_api_terms(cat = c(\"defgen\", \"offcat\")) head(terms) #> # A tibble: 6 × 3 #>   name   type   terms         #>                #> 1 defgen select female        #> 2 defgen select indeterminate #> 3 defgen select male          #> 4 offcat select breakingPeace #> 5 offcat select damage        #> 6 offcat select deception"},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":null,"dir":"Reference","previous_headings":"","what":"Parse Old Bailey Trials — parse_trials","title":"Parse Old Bailey Trials — parse_trials","text":"parsing Old Bailey trial data.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Parse Old Bailey Trials — parse_trials","text":"","code":"parse_trials(   xml_address   )"},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Parse Old Bailey Trials — parse_trials","text":"xml_address One XML addresses. single XML address can passed string, numerous XML addresses can passed list.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parse Old Bailey Trials — parse_trials","text":"Dataframe containing API pull parsed Old Bailey Trials.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parse Old Bailey Trials — parse_trials","text":"","code":"# Return a dataframe with parsed trial data. xml_address <- \"https://www.oldbaileyonline.org/obapi/text?div=t17690112-9\" parsed_trial <- parse_trials(xml_address) #> [1] \"Parsing https://www.oldbaileyonline.org/obapi/text?div=t17690112-9\" #> [1] \"1 out of 1 trials.\" head(parsed_trial) #>   trial_account_id  defendant_name defendant_gender #> 1      t17690112-9 Matthew Skinner             male #> 2      t17690112-9 Matthew Skinner             male #> 3      t17690112-9 Matthew Skinner             male #> 4      t17690112-9 Matthew Skinner             male #> 5      t17690112-9 Matthew Skinner             male #> 6      t17690112-9 Matthew Skinner             male #>                          victim_name victim_gender        crime_location #> 1 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 2 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 3 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 4 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 5 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 6 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #>       offence_category offence_subcategory punishment_category #> 1 deception, deception    forgery, forgery                     #> 2 deception, deception    forgery, forgery                     #> 3 deception, deception    forgery, forgery                     #> 4 deception, deception    forgery, forgery                     #> 5 deception, deception    forgery, forgery                     #> 6 deception, deception    forgery, forgery                     #>   punishment_subcategory              verdict verdict_subcategory speech_id #> 1                        notGuilty, notGuilty                             0 #> 2                        notGuilty, notGuilty                             1 #> 3                        notGuilty, notGuilty                             2 #> 4                        notGuilty, notGuilty                             3 #> 5                        notGuilty, notGuilty                             4 #> 6                        notGuilty, notGuilty                             5 #>       speaker_name #> 1                  #> 2 William Saunders #> 3               Q. #> 4          Vaughn. #> 5                  #> 6               Q. #>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            body_text #> 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        90. (L.) Matthew Skinner was indicted for  forging, and counteirfeting an order, for the payment of money, directed to Mess. Fuller, Baker, and Halford , to this purport: \"October \"2 l, 1768. Pay to Mr. James Brown , or \"bearer, 15 l. 15 s. and 6 d. G. Humphrys.\" And for publishing the same, with intent to defraud William Saunders , October 22 . #> 2 On the 22d of October last, the prisoner came to my shop; I am a hosier  near Aldgate ; he told me, he was recommended to buy three or four dozen of house, of 23 or 24 s. a dozen, and that they were for a person at Berry, who did a great deal of business in my way, and if we used him well, he would be a good customer; he looked out five dozen, which came to 5 l. 6 s. I asked him, what name I should make the bill of parcels in; he said, his name was Robinson; he then presented a draft for 15 l. 15 s. and 6 d. and desired me to give him change. He said, it was the last draft he had. I was hesitating upon it, but he appearing to be a reputable country shop-keeper, I was inclinable to give him change, with this precaution, that as soon as I had given him change, which was a draft upon Sir Richard Glyn and Co. I intended to go immediately to know whether it was a good one. I gave him a draft upon Sir Richard for 10 l. 9 s. and 6 d. which with the 5 l. 6 s. made the money. I went to Mr. Fuller's, and found his bill was a bad one. Sir Richard Glyn 's house being but two doors from that, I got to Sir Richard Glyn 's four minutes before the prisoner came in. Skinner seeing me, he wanted to withdraw. He said, he would call again; they told him, he had better do his business now. He had my draft in his hand, and laid it on the counter. We went for a constable, and took him in custody. He said, he received it of one Gompy, and said, his own name was Jonathan Robinson , that he came to town about selling a horse, and that he could neither write nor read. We went before an Alderman on the Monday. ( This was Saturday evening.) He there acknowledged another fraud of this kind. He said, he came from Sheffield, and that he received it of one Gompy, at a house in Goodman's Fields. He said, he should be glad to have Gompy taken. John Vaughn. The first time I saw the prisoner, was at Sir Richard Glyn 's. I went along with him and Mr. Saunders, and Mr. Halford, to a tavern in the Poultry. He was asked his name. He said, it was Jonathan Robinson , and was lately come out of the country, I think, from Sheffield, and had the draft of one Gompy, a Jew, and that he himself could neither write nor read. That he had laid in Goodman's-Fields the night before, and had taken it there; that he had been in town but a few days; that he lodged, when he came to town, at the Three Nuns Inn, in White-Chapel, three or four nights, but had laid at the Fleece Goodman's-fields the night before; and that he came to town to dispose of a horse. But he was not consistent in the account that he gave of himself. #> 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Does any body of the name of G. Humphrys keep cash at your house? #> 4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         I have been there fifteen or sixteen years, and I know of no such person. The draft is a blank cheque of ours that has seen filled up (Produced in court.) It is read to the purport as in the indictment. #> 5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Prisoner's Defence. I received these drafts of Gompy, in order to get them off for him. I was very innocent of any bad design. #> 6                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             to Saunders. How came you to find that the prisoner's name was not Robinson? Saunders. When he was before Mr. Alderman Kennet, at the Mansion-House, he said his name was Matthew Skinner . The Alderman asked him, why he had said his name was Jonathan Robinson ; he answered, he was then confused, and did not know what he said. #>       date                                                xml_address #> 1 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 2 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 3 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 4 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 5 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 6 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9"}]
+[{"path":"https://ropengov.github.io/oldbailey/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Steph Buongiorno. Author, maintainer.","code":""},{"path":"https://ropengov.github.io/oldbailey/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Buongiorno S (2023). oldbailey: Accessing Old Bailey Open Data. https://github.com/rOpenGov/oldbailey, https://ropengov.github.io/oldbailey/.","code":"@Manual{,   title = {oldbailey: For Accessing the Old Bailey Open Data},   author = {Steph Buongiorno},   year = {2023},   note = {https://github.com/rOpenGov/oldbailey, https://ropengov.github.io/oldbailey/}, }"},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"oldbailey-accessing-the-old-bailey-historical-criminal-trials","dir":"","previous_headings":"","what":"For Accessing the Old Bailey Open Data","title":"For Accessing the Old Bailey Open Data","text":"oldbailey fetches historical trial data Old Bailey API (April 13, 1674 - April 1, 1913). parses resolves ambiguous inconsistent XML adding valuable metadata, name first-person speaker. returns analysis-ready data frame fields : Trail Account ID: unique ID assigned trial. Defendant Name: name defendant(s). Defendant Gender: recorded gender(s) defendant(s). Victim Name: name(s) victim(s). Victim Gender: recorded gender(s) victim(s). Crime Location: location(s) crime took place. Offence Category: Old Bailey uses eight high-level categories crime: “breaking peace,” “damage,” “deception,” “kill,” “miscellaneous,” “royal offences,” “sexual,” “theft,” “violent theft.” Offence Subcategory: narrowing high-level category. Old Bailey uses fifty-six subcategories crime. Punishment Category: Old Bailey uses five categories punishment: “corporal,” “death,” “imprison,” “misc. punishment,” “punishment,” “transport.” Punishment Subcategory: narrowing punishment category. Old Bailey uses twenty-six subcategories punihsment. Verdict: Guilt guilty. Speech ID: unique ID given speech, speech considered continuous recording reaching new speaker. Speech ID starts 0 every trial. Speaker Name: first-person speaker written trial record. Body Text: written trial record. Date: year, month, day trial. XML Address: address original XML file hosted Old Bailey online. Note: trials mention proper names defendants victims, contain first-person speakers. Optional parameters allow users specify number results, dates trials, whether contain key terms.","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"install","dir":"","previous_headings":"","what":"Install","title":"For Accessing the Old Bailey Open Data","text":"Install CRAN: (forthcoming) Install rOpenGov universe:","code":"install.packages(\"oldbailey\") # Enable repository from ropengov options(repos = c(   ropengov = 'https://ropengov.r-universe.dev',   CRAN = 'https://cloud.r-project.org'))    # Download and install oldbailey install.packages(\"oldbailey\")"},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"return-old-bailey-trials-in-two-steps","dir":"","previous_headings":"","what":"Return Old Bailey Trials in Two Steps","title":"For Accessing the Old Bailey Open Data","text":"Use find_trials() return list XML addresses trials coresponding search parameters. default, find_trials() return addresses 197,752 trials. Pass XML addresses parse_trials() return analysis-ready data frame Old Bailey trial data.","code":"xml_addresses <- find_trials() trials_df <- parse_trials(xml_addresses)"},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"examples","dir":"","previous_headings":"Return Old Bailey Trials in Two Steps","what":"Examples","title":"For Accessing the Old Bailey Open Data","text":"Users can choose number trials return. Users can also search trials contain key terms. requires user supply: ) term’s category; b) term . Several categories terms can provided. Note: causes API return trials tagged “deception” “theft.” return trials tagged just “deception” just “theft.” Users can combine steps single line code. Old Bailey recognizes specific terms relation category. Use old_bailey_api_terms() see every possible term category name. know category name, can supply old_bailey_api_terms() see every term belongs . list categories recongized Old Bailey: defgen - Defence Gender offcat - Offence Category offsubcat - Offencive Subcategory vicgen - Victim Gender vercat - Verdict Category versubcat - Subcategory Verdict puncat - Punishment Category punsubcat - Punishment Subcategory date - dates trials held, YYYYMMDD format. following code returns terms pertaining “defgen” (defendant gender) “offcat” (offence category).","code":"find_trials(n_results = 200) find_trials(cat = \"offcat\", term = \"deception\") find_trials(n_results = 200, cat = c(\"offcat\", \"offcat\"), term = c(\"deception\", \"theft\")) parse_trials(find_trials(n_results = 15, cat = \"offcat\", term = \"deception\")) old_bailey_api_terms(cat = c(\"defgen\", \"offcat\")) # A tibble: 12 × 3    name   type   terms                          1 defgen select female         2 defgen select indeterminate  3 defgen select male           4 offcat select breakingPeace  5 offcat select damage         6 offcat select deception      7 offcat select kill           8 offcat select miscellaneous  9 offcat select royalOffences 10 offcat select sexual        11 offcat select theft         12 offcat select violentTheft"},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"usage","dir":"","previous_headings":"Return Old Bailey Trials in Two Steps","what":"Usage","title":"For Accessing the Old Bailey Open Data","text":"find_trials() Note: “cat” “term” must specified together. (otherwords, category specified without term, vice-versa.) parse_trials() old_bailey_api_terms()","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"parsing-old-bailey-xml","dir":"","previous_headings":"","what":"Parsing Old Bailey XML","title":"For Accessing the Old Bailey Open Data","text":"XML parser handles issues XML tags adding valuable metadata records. Many XML tags ambiguous inconsistent, tagging conventions change different periods. XML tags often miss person names, don’t make distinction names people speaking names people mentioned others.","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"crime-subcategories","dir":"","previous_headings":"","what":"Crime Subcategories","title":"For Accessing the Old Bailey Open Data","text":"Animal Theft Arson Assault Assault Intent Assault Sodomitical Intent Bankrupcy Barratry Bigamy Burglary Coining Offences Concealing Birth Conspiracy Embezzlement Extortion Forgery Fraud Game Law Offence Grand Larceny Habitual Criminal Highway Robbery House Breaking Illegal Abortion Indecent Assault Infanticide Keeping Brothel Kidnapping Libel Mail Manslaughter Murder Perjury Perverting Justice Petty Larceny Petty Treason Piracy Pocketpicking Rape Receiving Religious Offences Return Transportation Riot Robbery Seditious Libel Seditious Words Seducing Allegiance Shop Lifting Simple Larceny Sodomy Stealing Master Tax Offences Theft Place Threatening Behaviour Treason Vagabond Wounding","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"punishment-subcategories","dir":"","previous_headings":"","what":"Punishment Subcategories","title":"For Accessing the Old Bailey Open Data","text":"Branding Branding Cheek Burning Death Dissection Drawn Quartered Executed Fine Forfeiture Hanging Chains Hard Labour House Correction Insanity Military Naval Duties Newgate Institution Pardon Penal Servitude Pillory Preventive Detention Private Whipping Public Whipping Respited Respited Pregnancy Sentence Respited Sureties Whipping","code":""},{"path":"https://ropengov.github.io/oldbailey/index.html","id":"citation","dir":"","previous_headings":"Punishment Subcategories","what":"Citation","title":"For Accessing the Old Bailey Open Data","text":"Please cite package follows: Buongiorno S (2023). oldbailey: Accessing Old Bailey Open Data. https://github.com/stephbuon/oldbailey, https://ropengov.github.io/oldbailey/, https://github.com/rOpenGov/oldbailey. BibTeX: See website projects. Disclaimer package officially related endorsed Old Bailey Online Government United Kingdom.","code":"@Manual{,   title = {oldbailey: For Accessing The Old Bailey Open Data.},   author = {Steph Buongiorno},   year = {2023},   note = {https://github.com/stephbuon/oldbailey, https://ropengov.github.io/oldbailey/, https://github.com/rOpenGov/oldbailey}, }"},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":null,"dir":"Reference","previous_headings":"","what":"Find Old Bailey Trials — find_trials","title":"Find Old Bailey Trials — find_trials","text":"finding Old Bailey trial data.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Find Old Bailey Trials — find_trials","text":"","code":"find_trials(   n_results = \"all\",   cat = NA,   term = NA   )"},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Find Old Bailey Trials — find_trials","text":"n_results number results return. default, results returned. cat Find trials pertaining category. (optional). term Find trials pertaining term. (optional).","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Find Old Bailey Trials — find_trials","text":"Dataframe containing API pull XML addresses Old Bailey Trials corresponding search criteria.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/find_trials.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Find Old Bailey Trials — find_trials","text":"","code":"# Return a dataframe with 5 trials. trials <- find_trials(n_results = 5) head(trials) #> [[1]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-1\" #>  #> [[2]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-2\" #>  #> [[3]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-3\" #>  #> [[4]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-4\" #>  #> [[5]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16740429-5\" #>   # Return a dataframe with 5 trials on deception.  trials <- find_trials(n_results = 5, cat = \"offcat\", term = \"deception\") head(trials) #> [[1]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16750707-10\" #>  #> [[2]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16760114-14\" #>  #> [[3]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16840116-28\" #>  #> [[4]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16840409-32\" #>  #> [[5]] #> [1] \"https://www.oldbaileyonline.org/obapi/text?div=t16840515-6\" #>"},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":null,"dir":"Reference","previous_headings":"","what":"View Old Bailey API Terms — old_bailey_api_terms","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"viewing terms categories.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"","code":"old_bailey_api_terms(   cat = NULL   )"},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"cat Return terms corresponding category crime. default, terms categories returned.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"Dataframe containing API pull terms categories.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/old_bailey_api_terms.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"View Old Bailey API Terms — old_bailey_api_terms","text":"","code":"# Return a dataframe with the terms corresponding to defendant gender or offensive category. terms <- old_bailey_api_terms(cat = c(\"defgen\", \"offcat\")) head(terms) #> # A tibble: 6 × 3 #>   name   type   terms         #>                #> 1 defgen select female        #> 2 defgen select indeterminate #> 3 defgen select male          #> 4 offcat select breakingPeace #> 5 offcat select damage        #> 6 offcat select deception"},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":null,"dir":"Reference","previous_headings":"","what":"Parse Old Bailey Trials — parse_trials","title":"Parse Old Bailey Trials — parse_trials","text":"parsing Old Bailey trial data.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Parse Old Bailey Trials — parse_trials","text":"","code":"parse_trials(   xml_address   )"},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Parse Old Bailey Trials — parse_trials","text":"xml_address One XML addresses. single XML address can passed string, numerous XML addresses can passed list.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parse Old Bailey Trials — parse_trials","text":"Dataframe containing API pull parsed Old Bailey Trials.","code":""},{"path":"https://ropengov.github.io/oldbailey/reference/parse_trials.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parse Old Bailey Trials — parse_trials","text":"","code":"# Return a dataframe with parsed trial data. xml_address <- \"https://www.oldbaileyonline.org/obapi/text?div=t17690112-9\" parsed_trial <- parse_trials(xml_address) #> [1] \"Parsing https://www.oldbaileyonline.org/obapi/text?div=t17690112-9\" #> [1] \"1 out of 1 trials.\" head(parsed_trial) #>   trial_account_id  defendant_name defendant_gender #> 1      t17690112-9 Matthew Skinner             male #> 2      t17690112-9 Matthew Skinner             male #> 3      t17690112-9 Matthew Skinner             male #> 4      t17690112-9 Matthew Skinner             male #> 5      t17690112-9 Matthew Skinner             male #> 6      t17690112-9 Matthew Skinner             male #>                          victim_name victim_gender        crime_location #> 1 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 2 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 3 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 4 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 5 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #> 6 William Saunders, Benjamin Hopkins    male, male Aldgate, Cripple-gate #>       offence_category offence_subcategory punishment_category #> 1 deception, deception    forgery, forgery                     #> 2 deception, deception    forgery, forgery                     #> 3 deception, deception    forgery, forgery                     #> 4 deception, deception    forgery, forgery                     #> 5 deception, deception    forgery, forgery                     #> 6 deception, deception    forgery, forgery                     #>   punishment_subcategory              verdict verdict_subcategory speech_id #> 1                        notGuilty, notGuilty                             0 #> 2                        notGuilty, notGuilty                             1 #> 3                        notGuilty, notGuilty                             2 #> 4                        notGuilty, notGuilty                             3 #> 5                        notGuilty, notGuilty                             4 #> 6                        notGuilty, notGuilty                             5 #>       speaker_name #> 1                  #> 2 William Saunders #> 3               Q. #> 4          Vaughn. #> 5                  #> 6               Q. #>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            body_text #> 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        90. (L.) Matthew Skinner was indicted for  forging, and counteirfeting an order, for the payment of money, directed to Mess. Fuller, Baker, and Halford , to this purport: \"October \"2 l, 1768. Pay to Mr. James Brown , or \"bearer, 15 l. 15 s. and 6 d. G. Humphrys.\" And for publishing the same, with intent to defraud William Saunders , October 22 . #> 2 On the 22d of October last, the prisoner came to my shop; I am a hosier  near Aldgate ; he told me, he was recommended to buy three or four dozen of house, of 23 or 24 s. a dozen, and that they were for a person at Berry, who did a great deal of business in my way, and if we used him well, he would be a good customer; he looked out five dozen, which came to 5 l. 6 s. I asked him, what name I should make the bill of parcels in; he said, his name was Robinson; he then presented a draft for 15 l. 15 s. and 6 d. and desired me to give him change. He said, it was the last draft he had. I was hesitating upon it, but he appearing to be a reputable country shop-keeper, I was inclinable to give him change, with this precaution, that as soon as I had given him change, which was a draft upon Sir Richard Glyn and Co. I intended to go immediately to know whether it was a good one. I gave him a draft upon Sir Richard for 10 l. 9 s. and 6 d. which with the 5 l. 6 s. made the money. I went to Mr. Fuller's, and found his bill was a bad one. Sir Richard Glyn 's house being but two doors from that, I got to Sir Richard Glyn 's four minutes before the prisoner came in. Skinner seeing me, he wanted to withdraw. He said, he would call again; they told him, he had better do his business now. He had my draft in his hand, and laid it on the counter. We went for a constable, and took him in custody. He said, he received it of one Gompy, and said, his own name was Jonathan Robinson , that he came to town about selling a horse, and that he could neither write nor read. We went before an Alderman on the Monday. ( This was Saturday evening.) He there acknowledged another fraud of this kind. He said, he came from Sheffield, and that he received it of one Gompy, at a house in Goodman's Fields. He said, he should be glad to have Gompy taken. John Vaughn. The first time I saw the prisoner, was at Sir Richard Glyn 's. I went along with him and Mr. Saunders, and Mr. Halford, to a tavern in the Poultry. He was asked his name. He said, it was Jonathan Robinson , and was lately come out of the country, I think, from Sheffield, and had the draft of one Gompy, a Jew, and that he himself could neither write nor read. That he had laid in Goodman's-Fields the night before, and had taken it there; that he had been in town but a few days; that he lodged, when he came to town, at the Three Nuns Inn, in White-Chapel, three or four nights, but had laid at the Fleece Goodman's-fields the night before; and that he came to town to dispose of a horse. But he was not consistent in the account that he gave of himself. #> 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Does any body of the name of G. Humphrys keep cash at your house? #> 4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         I have been there fifteen or sixteen years, and I know of no such person. The draft is a blank cheque of ours that has seen filled up (Produced in court.) It is read to the purport as in the indictment. #> 5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Prisoner's Defence. I received these drafts of Gompy, in order to get them off for him. I was very innocent of any bad design. #> 6                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             to Saunders. How came you to find that the prisoner's name was not Robinson? Saunders. When he was before Mr. Alderman Kennet, at the Mansion-House, he said his name was Matthew Skinner . The Alderman asked him, why he had said his name was Jonathan Robinson ; he answered, he was then confused, and did not know what he said. #>       date                                                xml_address #> 1 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 2 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 3 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 4 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 5 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9 #> 6 17690112 https://www.oldbaileyonline.org/obapi/text?div=t17690112-9"}]