README.md

hcandersenr

Travis build status AppVeyor build status

An R Package for H.C. Andersens fairy tales

This package contains (most) the complete texts of 157 fairy tales of H.C. Andersen, in a number of different languages. formatted to be convenient for text analysis. Where each text is formatted to elements of about 80 characters. The package contains:

Avaliable fairytales

library(hcandersenr)
library(tidyverse)
hca_fairytales() %>% 
  select(book, language) %>% 
  unique() %>% 
  mutate(langauge = fct_relevel(language, c("English", "Spanish", "German", "Danish", "French"))) %>%
  ggplot(aes(langauge, book)) + 
  geom_raster(alpha = 0.3) +
  scale_x_discrete(position = "top")

Installation

To install the development version from Github:

library(devtools)
install_github("EmilHvitfeldt/hcandersenr")
library(hcandersenr)


Try the hcandersenr package in your browser

Any scripts or data that you put into this service are public.

hcandersenr documentation built on May 2, 2019, 7:22 a.m.