覚え書き3:欠損値を平均で代入

ライブラリe1071のimpute関数を使うと便利

library<span class="synSpecial">(</span>e1071<span class="synSpecial">)</span>
data <span class="synStatement">&lt;-</span> impute<span class="synSpecial">(</span>data<span class="synSpecial">,</span><span class="synConstant">&quot;mean&quot;</span><span class="synSpecial">)</span>