Skip to contents

Validates that the provided object is a valid data frame. It checks that the data frame is not NULL, that it is of class data.frame, and that it has at least one column and one row.

Usage

assert_is_valid_data_frame(df)

Arguments

df

A data frame object to be validated.

Value

This function does not return a value. It stops execution with an error message if any of the validations fail.

Examples

if (FALSE) { # \dontrun{
df <- data.frame(x = 1:10)
assert_is_valid_data_frame(df)
} # }