Description Usage Arguments Value Examples
Tests whether the string passed is more than 20 characters, if yes. It is garbage! From https://github.com/foodoh/rmgarbage
1 | rmg_toolong(x, length = 20)
|
x |
a character vector |
length |
numeric, threshold for acceptable length of string |
Logical
1 2 3 4 5 | garbage_string_n39 <- stringi::stri_rand_strings(1, 39, pattern = "[a-z]")
garbage_string_n40 <- stringi::stri_rand_strings(1, 40, pattern = "[a-z]")
rmg_toolong(garbage_string_n39) # FALSE
rmg_toolong(garbage_string_n40) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.