Skip to content

Commit

Permalink
adding koanr package. closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Aug 6, 2018
1 parent 49b3599 commit 36cff0d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Table of Contents
* [sacred](#sacred)
* [hcandersenr](#hcandersenr)
* [harrypotter](#harrypotter)
* [koanr](#koanr)
* [subtools](#subtools)
* [Wild data](#wild-data)
* Cornell data
Expand Down Expand Up @@ -172,6 +173,21 @@ Examples:
- [Harry Plotter: Celebrating the 20 year anniversary with tidytext and the tidyverse in R](https://paulvanderlaken.com/2017/08/03/harry-plotter-celebrating-the-20-year-anniversary-with-tidytext-the-tidyverse-and-r/)
- [Harry Plotter: Part 2 – Hogwarts Houses and their Stereotypes](https://paulvanderlaken.com/2017/08/22/harry-plotter-part-2-hogwarts-houses-and-their-stereotypes/)

## koanr

The **koanr** package includes text from several of the more important Zen koan texts.

```{r message=FALSE}
#devtools::install_github("malcolmbarrett/koanr")
library(koanr)
```

The texts in this package include The Gateless Gate (`gateless_gate`), The Blue Cliff Record (`blue_cliff_record`), The Record of the Transmission of the Light(`record_of_light`), and The Book of Equanimity(`book_of_equanimity`).

```{r}
dplyr::glimpse(gateless_gate)
```

### subtools

The **subtools** package doesn't include any textual data, but allows you to read subtitle files.
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rather how to get a data set to get started with minimal hassle.
- [sacred](#sacred)
- [hcandersenr](#hcandersenr)
- [harrypotter](#harrypotter)
- [koanr](#koanr)
- [subtools](#subtools)
- [Wild data](#wild-data)
- Cornell data
Expand Down Expand Up @@ -250,6 +251,31 @@ Examples:
- [Harry Plotter: Part 2 – Hogwarts Houses and their
Stereotypes](https://paulvanderlaken.com/2017/08/22/harry-plotter-part-2-hogwarts-houses-and-their-stereotypes/)

## koanr

The **koanr** package includes text from several of the more important
Zen koan texts.

``` r
#devtools::install_github("malcolmbarrett/koanr")
library(koanr)
```

The texts in this package include The Gateless Gate (`gateless_gate`),
The Blue Cliff Record (`blue_cliff_record`), The Record of the
Transmission of the Light(`record_of_light`), and The Book of
Equanimity(`book_of_equanimity`).

``` r
dplyr::glimpse(gateless_gate)
#> Observations: 192
#> Variables: 4
#> $ collection <chr> "The Gateless Gate", "The Gateless Gate", "The Gate...
#> $ case <int> 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, ...
#> $ type <chr> "title", "main_case", "commentary", "capping_verse"...
#> $ text <chr> "Joshu's Dog", "A monk asked Joshu, \"Has the dog t...
```

### subtools

The **subtools** package doesn’t include any textual data, but allows
Expand Down

0 comments on commit 36cff0d

Please sign in to comment.