Checks the number of rows in data.
check_rows( data, min_row = 1, max_row = max_nrow(), data_name = substitute(data) )
data | The data frame to check. |
---|---|
min_row | A count of the minimum number of rows. |
max_row | A count of the maximum number of rows. |
data_name | A string of the name of data. |
Throws an informative error or returns an invisible copy of data.
By default (min_row = 1
) data must include at least one row.
#> Error : data.frame() must have at least 1 row#> Error : data.frame(x = 1) must have at least 2 rows