Remove rows where all variables are NA using dplyr

后端 未结 6 1665
北荒
北荒 2020-12-08 07:18

I\'m having some issues with a seemingly simple task: to remove all rows where all variables are NA using dplyr. I know it can be done using base R (Re

6条回答
  •  独厮守ぢ
    2020-12-08 08:05

    I would suggest to use the wonderful janitor package here. Janitor is very user-friendly:

    janitor::remove_empty(dat, which = "rows")
    

提交回复
热议问题