| vc_integer | R Documentation |
Validates If Integer
vc_integer(data, x, ...)
data |
A data frame. |
x |
Column name from |
... |
ignored. |
dat <- data.frame(
vals = c('9.99.99', '22', '22.', '22.34', '22.234', '23,456', '12,23', 'dog', NA),
vals2 = c('123', '123,456', NA, 1, 0, 0, 0, 0, ""),
stringsAsFactors = FALSE
)
vc_integer(dat, 'vals')
vc_integer(dat, 'vals2')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.