check_non_zero_rows: Check for Non-Zero Rows

View source: R/return_assertions_message.R

check_non_zero_rowsR Documentation

Check for Non-Zero Rows

Description

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.

Usage

check_non_zero_rows(dataframe, collection)

Arguments

dataframe

A dataframe.

collection

A list to store the message if there are 0 rows.

Value

The updated collection.

Examples

# Create an empty dataframe
dataframe <- data.frame()
collection <- checkmate::makeAssertCollection()
check_non_zero_rows(dataframe, collection)

vvauditor documentation built on May 29, 2024, 12:20 p.m.