This repository contains the files and code authored by Renessa Gomes as submission for Assignment B4 in STAT 545B. This submission was completed according to the guidelines and requirements found here.
Three options for completion were presented and of these, Option A was selected. Exercises 1 and 2 were selected for submission.
The purpose of Assignment B4 Option A is to apply concepts presented in class to accomplish various exercises involving strings and functional programming in R.
Exercise 1 of this assignment required analysis of a text. A Christmas Carol by Charles Dickens was chosen and retrieved from Project Gutenberg.
This repository contains the following files:
README.md
: introduction and guide to this repositoryexercise-1
: folder holding files related to Assignment B4: Exercise 1exercise-1.Rmd
: submitted code for required tasks of Exercise 1exercise-1.md
: knit output file and most up-to-date version ofexercise-1.Rmd
exercise-1_files
: png files of produced plots to view on GitHub
exercise-2
: folder holding files related to Assignment B4: Exercise 2exercise-2.Rmd
: submitted code for required tasks of Exercise 2exercise-2.md
: knit output file and most up-to-date version ofexercise-2.Rmd
The following packages are required to run the code in exercise-1.Rmd
and may need to be installed:
gutenbergr
: includes functions required to load texts from Project Gutenbergtidytext
: includes functions required to tidy text datadplyr
: includes functions required for data wranglingstringr
: includes functions required for string manipulation and detectionforcats
: includes functions to manipulate factors and levels in dataggplot2
: includes functions required for data visualization
The following packages are required to run the code in exercise-2.Rmd
and may need to be installed:
dplyr
: includescase_when()
function vectorize multipleif_else()
statementsstringr
: includes functions required for string manipulationtibble
: includestibble()
function to create tibbles from scratchtestthat
: includes functions required to test and evaluate function behaviors