Learn R Programming

alookr (version 0.5.0)

summary.split_df: Summarizing split_df information

Description

summary method for "split_df" class.

Usage

# S3 method for split_df
summary(object, ...)

Value

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)

Arguments

object

an object of class "split_df", usually, a result of a call to split_df().

...

further arguments passed to or from other methods.

Details

summary.split_df provides information on the number of two split data sets, minority class and majority class.

Examples

Run this code
library(dplyr)

# Credit Card Default Data
head(ISLR::Default)

# Generate data for the example
sb <- ISLR::Default %>%
  split_by(default)

sb
summary(sb)

Run the code above in your browser using DataLab