Check if an object is a data.frame or matrix
check_data.RdInternal helper function to determine whether an object is a data.frame or matrix.
Examples
if (FALSE) { # \dontrun{
if (interactive()) {
check_data(data.frame(a = 1:3, b = 4:6)) # TRUE
check_data(matrix(1:9, nrow = 3)) # TRUE
check_data(list(a = 1, b = 2)) # FALSE
}
} # }