forcats: 分类变量数据处理 forcats: for factor 函数说明factor(x,levels,labels,ordered)as_factor(x)fct_expand(f, …)添加更多级别fct_explicit_na(f, na_level = “(Missing)”)为缺失值提供因子水平fct_c(…)组合factorfct_count(f, sort = FALSE)统计各水平记录数fct_unify(fs, levels = lvls_union(fs))统一一系列factor中的水平fct_drop(f, only)删除未使用的水平