bad.response {SemNetCleaner} | R Documentation |
Bad Responses to NA
Description
A wrapper function to determine whether responses are good or bad.
Bad responses are replaced with missing (NA
). Good responses are returned.
Usage
bad.response(word, ...)
Arguments
word |
Character. A word to be tested for whether it is bad |
... |
Vector. Additional responses to be considered bad |
Value
If response is bad, then returns NA
.
If response is valid, then returns the response
Author(s)
Alexander Christensen <alexpaulchristensen@gmail.com>
Examples
# 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"))
[Package SemNetCleaner version 1.3.4 Index]