Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

check_type

Quantitatively check on variables


Description

This internal function is to be used in the prep function to ensure that the type of the variables matches the expectation. Throws an error if check fails.

Usage

check_type(dat, quant = TRUE)

Arguments

dat

A data frame or tibble of the training data.

quant

A logical indicating whether the data is expected to be numeric (TRUE) or a factor/character (FALSE).


recipes

Preprocessing Tools to Create Design Matrices

v0.1.16
MIT + file LICENSE
Authors
Max Kuhn [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.