| vc_nchar | R Documentation |
Validates Number of Characters
vc_nchar(data, x, nchar, ...)
data |
A data frame. |
x |
Column name from |
nchar |
The expected max number of characters. |
... |
ignored. |
dat <- data.frame(
x = c('dog', 'cat', 'chicken', 'a', NA),
stringsAsFactors = FALSE
)
vc_nchar(dat, 'x', 3)
vc_nchar(dat, 'x', 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.