mat_check_0row: Check 0 rows

View source: R/utilities.R

mat_check_0rowR Documentation

Check 0 rows

Description

Check 0 rows

Usage

mat_check_0row(
  df,
  message_ok = "OK",
  warn_message = NULL,
  stop_message = NULL,
  print_df = TRUE,
  n_row = 0
)

Arguments

df

data

message_ok

the ok message

warn_message

message if only wants wanr

stop_message

message when stopping

print_df

print when error?

n_row

number of rows to check for

Examples

mat_check_0row(df=subset(iris, Species=="aaa"))
mat_check_0row(df=subset(iris, Species=="setosa"), warn_message ="make sure no setosa?")
## Not run: 
  mat_check_0row(df=subset(iris, Species=="setosa"))
  mat_check_0row(df=subset(iris, Species=="setosa"), stop_message ="Should not have setosa")

## End(Not run)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.