bad_response: Changes Bad Responses to 'NA'

View source: R/bad_response.R

bad_responseR Documentation

Changes Bad Responses to NA

Description

Determines whether responses are good or bad. Bad responses are replaced with missing (NA). Good responses are returned

Usage

bad_response(word, ...)

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"))


SemNetCleaner documentation built on Oct. 16, 2026, 5:07 p.m.