View source: R/data_expectations.R
Check number of rows and columns matches expectation of range
1 2 3 |
df |
data frame to check. If a vector is given, it converts it into a one column dataframe to check length as rows |
min_nrow |
Integer of inclusive minimum OK |
max_nrow |
Integer of inclusive maximum OK. Default is same as minimum |
stop_if_fail |
T/F for whether to consider failure an error |
return_df |
T/F whether to end function with dataframe input (as in if a check in part of a pipe) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.