nNonNumChar | R Documentation |
nNonNumChar
counts number of non-numeric characters.
Made for positive non-scientific values (eg won't count neg-sign, neither Euro comma ',')
nNonNumChar(txt)
txt |
character vector to be treated |
This function returns a numeric vector with numer of non-numeric characters (ie not '.' or 0-9))
nchar
nNonNumChar("a1b "); sapply(c("aa","12ab","a1b2","12","0.5"), nNonNumChar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.