validate_cells: Validate cell-DF

Description Usage Arguments Details Value Examples

View source: R/validate_cells.R

Description

Validate cell-DF

Usage

1

Arguments

dat

An R object

Details

It checks for following facts:

Value

Logical scalar. If the value is FALSE, it will contain attribute named msg.

Examples

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")

tidycells documentation built on March 26, 2020, 7:35 p.m.