vc_regex | R Documentation |
Validates and Reports If Formatted Like Regex Provided
vc_regex(data, x, regex, ...)
data |
A data frame. |
x |
Column name from |
regex |
the regular expression to be tested against. |
... |
ignored. |
dat <- data.frame( vals = c('Greg', 'John', 'Tyrone', 'Susan', 'Kyra', 'Nells12', NA, ""), stringsAsFactors = FALSE ) vc_regex(dat, 'vals', '^[A-Z][^0-9]+$') vc_regex(dat, 'vals', '^[A-Z].+$')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.