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

How it works...

The preceding ifelse() function returns the imputed mean value if its first argument is NA. Otherwise, it returns the first argument.