Description Usage Arguments Value Examples
View source: R/text_drop_multiple_allcaps_responses.R
In some cases, you don't want to include responses that are written fully capitalised. However, you must be careful to ignore legitimate all-caps words, such as acronyms in the domain of the consultation (eg. 'NHS').
1 2 3 4 5 6 | text_drop_multiple_allcaps_responses(
data,
text_col,
max_cap = 3,
ignore_caps = c("NHS")
)
|
data |
data.frame containing all responses |
text_col |
column containing free text |
max_cap |
maximum number of all-caps words to allow per response |
ignore_caps |
string vector of all-caps words to ignore in this count (eg. legitimate acronyms) |
data.frame of responses with all-caps responses filtered out
1 | text_drop_multiple_allcaps_responses(data.frame(doc_id = c(1, 2), text = c('TEST THE FUNCTION', 'TEST NHS FUNCTION')), text_col = 'text', max_cap = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.