Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 2.34 KB

README.md

File metadata and controls

65 lines (53 loc) · 2.34 KB

sherlock

The goal of sherlock is to provide access to the full texts of Sherlock Holmes stories that are in the public domain. Text and further information regarding copyright laws can be found here.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/sherlock")

Example

The data set is available as holmes

library(sherlock)
holmes
#> # A tibble: 65,958 × 2
#>    text                                 book              
#>    <chr>                                <chr>             
#>  1 "A STUDY IN SCARLET"                 A Study In Scarlet
#>  2 ""                                   A Study In Scarlet
#>  3 "Table of contents"                  A Study In Scarlet
#>  4 ""                                   A Study In Scarlet
#>  5 "Part I"                             A Study In Scarlet
#>  6 "Mr. Sherlock Holmes"                A Study In Scarlet
#>  7 "The Science Of Deduction"           A Study In Scarlet
#>  8 "The Lauriston Garden Mystery"       A Study In Scarlet
#>  9 "What John Rance Had To Tell"        A Study In Scarlet
#> 10 "Our Advertisement Brings A Visitor" A Study In Scarlet
#> # … with 65,948 more rows

and is named in such a way that sherlock::holmes can be called

sherlock::holmes
#> # A tibble: 65,958 × 2
#>    text                                 book              
#>    <chr>                                <chr>             
#>  1 "A STUDY IN SCARLET"                 A Study In Scarlet
#>  2 ""                                   A Study In Scarlet
#>  3 "Table of contents"                  A Study In Scarlet
#>  4 ""                                   A Study In Scarlet
#>  5 "Part I"                             A Study In Scarlet
#>  6 "Mr. Sherlock Holmes"                A Study In Scarlet
#>  7 "The Science Of Deduction"           A Study In Scarlet
#>  8 "The Lauriston Garden Mystery"       A Study In Scarlet
#>  9 "What John Rance Had To Tell"        A Study In Scarlet
#> 10 "Our Advertisement Brings A Visitor" A Study In Scarlet
#> # … with 65,948 more rows