Change NAs to interpolated flat bars

此生再无相见时 提交于 2019-12-01 11:46:24

Besides na.locf(), there are already several other methods in package zoo:

  • na.aggregate()
  • na.approx()
  • na.fill()
  • na.spline()
  • na.trim()

and na.approx() or na.spline() offer you interpolation.

The mice package (http://cran.r-project.org/web/packages/mice/index.html) may helps you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!