Read Section 1.4 in Hello Data Science and peruse Chapter 2 of the Tidyverse style guide. Using what you’ve learned, modify the code below to be more readable and consistent with these guidelines.
Go to the Console and install the cowsay package. Add code below that loads the package and then test out the say() function by using it to create output with three different animals/sayings.
library(cowsay)say("There are 37 ants in my room and I can feel them crawling around on me every single night and nobody believes me.")
_____________________________________________________
/ There are 37 ants in my room and I can feel them \
| crawling around on me every single night and nobody |
\ believes me. /
-----------------------------------------------------
\
\
^__^
(oo)\ ________
(__)\ )\ /\
||------w|
|| ||
say(what ="wow that particular mammal seems to be in distress they should really talk to a doctor about that.", by ="behindcat")
_________________________________________________________
/ wow that particular mammal seems to be in distress they \
\ should really talk to a doctor about that. /
---------------------------------------------------------
\
\
|\___/|
) (
=\ /=
)===(
/ \
| |
/ \
\ /
jgs \__ _/
( (
) )
(_(
say(what ="OH MY GOD OH MY GOD OH MY GOD OH MY GOD OH MY GOD", by ="longcat", length =37)
___________________________________________________
< OH MY GOD OH MY GOD OH MY GOD OH MY GOD OH MY GOD >
---------------------------------------------------
\
\
.ハ,,ハ
( ゚ω゚)
|つ つ
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
U " U
[BoingBoing]