checkDataset {strvalidator} | R Documentation |
Check Dataset
Description
Check a data.frame before analysis.
Usage
checkDataset(
name,
reqcol = NULL,
slim = FALSE,
slimcol = NULL,
string = NULL,
stringcol = NULL,
env = parent.frame(),
parent = NULL,
debug = FALSE
)
Arguments
name |
character name of data.frame. |
reqcol |
character vector with required column names. |
slim |
logical TRUE to check if 'slim' data. |
slimcol |
character vector with column names to check if 'slim' data. |
string |
character vector with invalid strings in 'stringcol', return FALSE if found. |
stringcol |
character vector with column names to check for 'string'. |
env |
environment where to look for the data frame. |
parent |
parent gWidget. |
debug |
logical indicating printing debug information. |
Details
Check that the object exist, there are rows, the required columns exist, if data.frame is 'fat', and if invalid strings exist. Show error message if not.
[Package strvalidator version 2.4.1 Index]