checkFrame {h2otools} | R Documentation |
check input data.frame
Description
checks the class of the input data.frame, makes sure that the specified 'df' is indeed a data.frame and more over, there is no column with class 'character' or 'ordered' in the data.frame. this function helps you ensure that your data is compatible with h2o R package.
Usage
checkFrame(df, ignore = NULL, is.df = TRUE, no.char = TRUE, no.ordered = TRUE)
Arguments
df |
data.frame object to evaluate |
ignore |
character vector of column names that should be ignored, if any. |
is.df |
logical. if TRUE, it examines if the 'df' is 'data.frame' |
no.char |
logical. if TRUE, it examines if the 'df' has any columns of class 'character' |
no.ordered |
logical. if TRUE, it examines if the 'df' has any columns of class 'ordered' factors |
Value
nothing
Author(s)
E. F. Haghish
Examples
data(cars)
# no error is expected because 'cars' dataset does not
# have 'ordered' or 'character' columns
checkFrame(cars)
[Package h2otools version 0.3 Index]