R Data Analysis Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

There's more...

You cannot impute the mean when a categorical variable has missing values, so you need a different approach. Even for numeric variables, we might sometimes not want to impute the mean for missing values. We discuss an often-used approach here.