Learn R Programming

strvalidator (version 1.3.0)

checkDataset: Plot Stutter GUI

Description

checkDataset is a function to 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 column name to check if 'slim' data.
string
character vector with invalid strings in 'stringcol', return FALSE if found.
stringcol
character column name 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.