summary.split_df | R Documentation |
summary method for "split_df" class.
## S3 method for class 'split_df'
summary(object, ...)
object |
an object of class "split_df", usually, a result of a call to split_df(). |
... |
further arguments passed to or from other methods. |
summary.split_df provides information on the number of two split data sets, minority class and majority class.
NULL is returned. However, the split train set and test set information are displayed. The output information is as follows.:
Random seed
Number of train sets and test sets
Name of target variable
Target variable minority class and majority class information (label and ratio)
library(dplyr)
# Credit Card Default Data
head(ISLR::Default)
# Generate data for the example
sb <- ISLR::Default %>%
split_by(default)
sb
summary(sb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.