Regarding the ISLR2 package:.
The definitions of the columns come directly from the description found in the package
ISLR2 ([D.1.11]) package and then we will create our cc_data dataset using the Default dataset, which inside the package.
library(ISLR2)
library(tidyverse)
cc_data <- Default # this data comes from the ISLR2 package
library(skimr)
skim(cc_data)
ββ Data Summary ββββββββββββββββββββββββ
Values
Name cc_data
Number of rows 10000
Number of columns 4
_______________________
Column type frequency:
factor 2
numeric 2
________________________
Group variables None
ββ Variable type: factor βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
skim_variable n_missing complete_rate ordered n_unique top_counts
1 default 0 1 FALSE 2 No: 9667, Yes: 333
2 student 0 1 FALSE 2 No: 7056, Yes: 2944
ββ Variable type: numeric ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
skim_variable n_missing complete_rate mean sd p0 p25 p50
1 balance 0 1 835.37 483.71 0.00 481.73 823.64
2 income 0 1 33516.98 13336.64 771.97 21340.46 34552.64
p75 p100 hist
1 1166.31 2654.32 βββ
ββ
2 43807.73 73554.23 ββββ
β