Description Usage Arguments Value Examples
If a string has nothing but alphabetic characters, look at the number of consonants and vowels. If the number of one is less than 10% of the number of the other, then the string is garbage. From https://github.com/foodoh/rmgarbage
1 | rmg_bad_consonant_vowel_ratio(x, ratio = 0.1)
|
x |
a character vector |
ratio |
numeric, ratio of vowels to consonents |
Logical
1 2 3 4 5 | garbage_string_cv1 <- "azerytugino"
garbage_string_cv2 <- "aaaaaaaaaaaaaaaaaax"
rmg_bad_consonant_vowel_ratio(garbage_string_cv1) # FALSE
rmg_bad_consonant_vowel_ratio(garbage_string_cv2) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.