Learn R Programming

h2otools (version 0.4)

checkFrame: 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)

Value

nothing

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

Author

E. F. Haghish

Examples

Run this code
data(cars)

# no error is expected because 'cars' dataset does not
# have 'ordered' or 'character' columns
checkFrame(cars)

Run the code above in your browser using DataLab