Description Usage Arguments Details Value Examples
View source: R/validate_cells.R
Validate cell-DF
1 | validate_cells(dat)
|
dat |
An R object |
It checks for following facts:
Whether dat
is a data.frame
Whether dat
conforms to rc_df
format
Whether dat
conforms to cell_df
format
If all the checks are passed then it returns TRUE
else it returns FALSE
with msg
attribute, indicating reason for validation failure.
Logical scalar. If the value is FALSE
, it will contain attribute named msg
.
1 2 3 4 5 6 7 8 | # returns TRUE
validate_cells(tibble::tibble(row = 1, col = 2, data_type = "numeric", value = "1"))
# this is FALSE
chk <- validate_cells(tibble::tibble(row = 1, col = 2, data_type = "numeric"))
# msg
attr(chk, "msg")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.