| vc_ | R Documentation | 
Generic column validation
vc_(data, x, expr, augment_comment = NULL, ...)
data | 
 A data frame.  | 
x | 
 Column name from   | 
expr | 
 An string that can be evaluated elementwise as an expression to
test on   | 
augment_comment | 
 details to be added to message, if any  | 
... | 
 ignored.  | 
Returns a vc classed list object.
vc_(mtcars, 'mpg', 'abs(scale(mpg)) < 2')
vc_(mtcars, 'mpg', 'abs(scale(mpg)) < 2',
    augment_comment = "...\n    because they may be (outliers > 2 sd)")
vc_(CO2, 'Type', '!grepl("^M", Type)',
    augment_comment = " because they don't begin with `M`")
vc_(mtcars, 'drat', 'drat >= wt',
    augment_comment = " because `drat` is less than `wt`")
str(vc_(mtcars, 'mpg', 'abs(scale(mpg)) < 2'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.