ranimalgonewild-vignette.Rmd
This package is designed to demonstrate how basic features of text analysis can be utilized to analyze and represent a text file or string while applying a humorous lens (because what is data science without a dash of humor!).
This document introduced you to Ranimalsgonewild basic set of tools, and shows you how to apply them to textual data.
Brief introduction:
animalClassifier: Determine an animal name based on the input text characters
animalType: Output an image of the type of the animal based on the text and species
textTransformer: Modify original text input with random animal name
wordCloud: Create word cloud based on total word counts
library(Ranimalsgonewild)
animalClassifier
needs single text input (characters data type)
text <- "Premature optimization is the root of all evil"
animalClassifier(text)
#> [1] "Whale"
animalType
needs two inputs which are the animal name from animalClassifier
and the same text input.
textTransformer
takes in a text input and modifies it with random animal name
text <- "print this line of text"
textTransformer(text)
#> [1] "elephant this line of text"
wordCloud
create the image based on a web link which contains textual data
wordCloud("https://ubc-mds.github.io/policies/")