How do I replace NAs in a subset of single column with the mean of the values in that column?

前端 未结 0 809
执笔经年
执笔经年 2020-12-21 02:32

If I have a data frame with columns a,b,c, how would I replace the NAs in column a[1:10] with the mean of the values from the entire "a" column? I don\'t want to r

相关标签:
回答
  • 消灭零回复
提交回复
热议问题