Description Usage Arguments Value Author(s) Examples
A wrapper function to determine whether responses are good or bad.
Bad responses are replaced with missing (NA
). Good responses are returned.
1 | bad.response(word, ...)
|
word |
Character. A word to be tested for whether it is bad |
... |
Vector. Additional responses to be considered bad |
If response is bad, then returns NA
.
If response is valid, then returns the response
Alexander Christensen <alexpaulchristensen@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 | # Bad response
bad.response(word = " ")
# Good response
bad.response(word = "hello")
# Make a good response bad
bad.response(word = "hello","hello")
# Add additional bad responses
bad.response(word = "hello", c("hello","world"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.