inspectdf
#检查变量类型分布
inspect_types(stations_norway) %>%
show_plot()
#检查字符变量分布
#high_cardinality 将少数类别合并
stations_norway %>%
select_if(is.character)%>%
inspect_cat() %>%
show_plot(high_cardinality = 1)
#检查数值变量分布
stations_norway %>%
select_if(is.numeric) %>%
inspect_num() %>%
show_plot()
#检查变量缺失值分布
stations_norway %>%
inspect_na()
#检查字符变量不平衡性分布
stations_norway %>%
select_if(is.character)%>%
inspect_imb()%>%
show_plot()
inspect_types(stations_norway) %>%
show_plot()
#检查字符变量分布
#high_cardinality 将少数类别合并
stations_norway %>%
select_if(is.character)%>%
inspect_cat() %>%
show_plot(high_cardinality = 1)
#检查数值变量分布
stations_norway %>%
select_if(is.numeric) %>%
inspect_num() %>%
show_plot()
#检查变量缺失值分布
stations_norway %>%
inspect_na()
#检查字符变量不平衡性分布
stations_norway %>%
select_if(is.character)%>%
inspect_imb()%>%
show_plot()
评论
发表评论