test_data_numeric | R Documentation |
Function to check the format of a numeric column
test_data_numeric(column_name, data, nrcode = NA, minval, maxval)
column_name |
the column name |
data |
data frame |
nrcode |
non response code corresponding to the column |
minval |
minimum value allowed |
maxval |
maximum value allowed |
0, if success error, if failure
test_data_numeric("age", data.frame(
"Age" = c(21, 15),
"Name" = c("John", "Dora")
), -99, 0, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.