View source: R/return_assertions_message.R
check_non_zero_rows | R Documentation |
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)
dataframe |
A dataframe. |
collection |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.