| vc_numeric | R Documentation |
Validates and Reports If Numeric
vc_numeric(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', '-1,234,123.456', '-1,234,123', '.2', NA, 1, 0, ""),
stringsAsFactors = FALSE
)
vc_numeric(dat, 'vals')
vc_numeric(dat, 'vals2')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.