powered by
Given a data.frame or data.table object and a target number of rows, check that a dataset has that many rows
assert_nrows(data, target_nrows, quiet = FALSE)
A data.frame or data.table
Numeric -- number of expected rows
Do you want to suppress the printed message when a test is passed? Default = F.
Throws error if test is violated
# NOT RUN { assert_nrows(CO2,84) # }
Run the code above in your browser using DataLab