knitr::opts_chunk$set( collapse = TRUE, comment = "#>", dpi = 200, fig.path = "man/figures/README-" )
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:
hcandersen_da
: r length(unique(hcandersenr::hcandersen_da$book))
out of the 157 Fairy tales in Danishhcandersen_de
: r length(unique(hcandersenr::hcandersen_de$book))
out of the 157 Fairy tales in Germanhcandersen_en
: r length(unique(hcandersenr::hcandersen_en$book))
out of the 157 Fairy tales in Englishhcandersen_es
: r length(unique(hcandersenr::hcandersen_es$book))
out of the 157 Fairy tales in Spanishhcandersen_fr
: r length(unique(hcandersenr::hcandersen_fr$book))
out of the 157 Fairy tales in FrenchEK
: dataframe with ID, names and publishing dateshca_fairytales
: Complete collection of all fairytales in this packagelibrary(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")
To install the development version from Github:
library(devtools) install_github("EmilHvitfeldt/hcandersenr") library(hcandersenr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.