From 36cff0d07a7e3cb11674157972539d0275463ec9 Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Sun, 5 Aug 2018 21:30:22 -0700 Subject: [PATCH] adding koanr package. closes #1 --- README.Rmd | 16 ++++++++++++++++ README.md | 26 ++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/README.Rmd b/README.Rmd index bb57766..9055c22 100644 --- a/README.Rmd +++ b/README.Rmd @@ -31,6 +31,7 @@ Table of Contents * [sacred](#sacred) * [hcandersenr](#hcandersenr) * [harrypotter](#harrypotter) + * [koanr](#koanr) * [subtools](#subtools) * [Wild data](#wild-data) * Cornell data @@ -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. diff --git a/README.md b/README.md index bdc0ffc..d8f8bdb 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 "The Gateless Gate", "The Gateless Gate", "The Gate... +#> $ case 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, ... +#> $ type "title", "main_case", "commentary", "capping_verse"... +#> $ text "Joshu's Dog", "A monk asked Joshu, \"Has the dog t... +``` + ### subtools The **subtools** package doesn’t include any textual data, but allows