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.

Functions

Brief introduction:

Usage

To use Ranimalsgonewild package in a project:

library(Ranimalsgonewild)

Identidy animal names with animalClassifier()

animalClassifier needs single text input (characters data type)

text <- "Premature optimization is the root of all evil"
animalClassifier(text)

Ouput animal image with animalType()

animalType needs two inputs which are the animal name from animalClassifier and the same text input.

species <- "Whale"
animal_img <- animalType(species, text)

Modify the text with textTransformer()

textTransformer takes in a text input and modifies it with random animal name

text <- "print this line of text"
textTransformer(text)

Ouput animal image with wordCloud()

wordCloud create the image based on a web link which contains textual data

wordCloud("https://ubc-mds.github.io/policies/")

{#id .class width=50%}



UBC-MDS/Ranimalsgonewild documentation built on Feb. 12, 2022, 7:48 a.m.