| na_rep | R Documentation |
Set NA for the values of x that contain a single repeating character and
no other characters.
na_rep(x, n = 0)
x |
A vector to check. |
n |
The minimum number times a character must repeat. If 0, the default,
then any string of one character will be replaced with |
Uses the regular expression "^(.)\\1+$".
The vector x with NA replacing repeating character values.
Other counting wrappers:
count_diff(),
count_in(),
count_na(),
count_out(),
na_in(),
na_out(),
prop_distinct(),
prop_in(),
prop_na(),
prop_out(),
what_in(),
what_out()
na_rep(c("VT", "NH", "ZZ", "ME"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.