Learn R Programming

ThreeWiseMonkeys (version 0.1.0)

Hear: hear no evil

Description

A function that will only "hear" an input containing variants on the string `"no evil"`. `Hear` is not case sensitive and will remove punctuation so `"no_Evil"` and `"nO- _eVil"` will also be heard. `Hear` is also sensitive to value names so passing an object `no_evil <- "asdf"` containing any arbitrary strings will also be heard. Anything that is not specifically `"no evil"` or some acceptable variant is assumed to be evil and will not be heard.

Usage

Hear(x)

Arguments

x

an input

Value

The string "No Evil.".

Examples

Run this code
# NOT RUN {
Hear(1)
Hear("No Evil")
no_evil <- "good stuff"
Hear(no_evil)
evil <- "good_stuff"
Hear(evil)
Hear(NA)
# }

Run the code above in your browser using DataLab