# \donttest{
library(dplyr)
# pps type is generic ======================================
pps_generic <- pps(iris)
pps_generic
# visualize pps class
plot(pps_generic)
# pps type is target_by =====================================
##-----------------------------------------------------------
# If the target variable is a categorical variable
# Using dplyr
pps_cat <- iris %>%
target_by(Species) %>%
pps()
# plot pps class
plot(pps_cat)
##---------------------------------------------------
# If the target variable is a numerical variable
# Using dplyr
pps_num <- iris %>%
target_by(Petal.Length) %>%
pps()
# plot pps class
plot(pps_num)
# }
Run the code above in your browser using DataLab