This function prints the number of rows of a data frame. This function is used to check that rows are not deleted or doubled unless expected.

check_rows(df, name = NULL)

Arguments

df

The data frame whose rows are to be counted

name

The name of the data file (this will be printed)

Value

A message is printed to the console with the number of rows of the data

Examples

check_rows(mtcars)
#> [1] "Number of rows of the mtcars: 32"