knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
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)
animalType
needs two inputs which are the animal name from animalClassifier
and the same text input.
species <- "Whale" animal_img <- animalType(species, text)
textTransformer
takes in a text input and modifies it with random animal name
text <- "print this line of text" textTransformer(text)
wordCloud
create the image based on a web link which contains textual data
wordCloud("https://ubc-mds.github.io/policies/")
{#id .class width=50%}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.