check_non_zero_rows.Rd
This function checks if there are more than 0 rows in the provided dataframe. If there are 0 rows, a message is added to the provided collection.
check_non_zero_rows(dataframe, collection)
A dataframe.
A list to store the message if there are 0 rows.
The updated collection.
# Create an empty dataframe
dataframe <- data.frame()
collection <- checkmate::makeAssertCollection()
check_non_zero_rows(dataframe, collection)
#> Collection of 1 assertion.