Remove rows with all or some NAs (missing values) in data.frame

后端 未结 16 1597
日久生厌
日久生厌 2020-11-21 05:49

I\'d like to remove the lines in this data frame that:

a) contain NAs across all columns. Below is my example data frame.



        
16条回答
  •  渐次进展
    2020-11-21 06:06

    Using dplyr package we can filter NA as follows:

    dplyr::filter(df,  !is.na(columnname))
    

提交回复
热议问题