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

后端 未结 16 1599
日久生厌
日久生厌 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:05

    Try na.omit(your.data.frame). As for the second question, try posting it as another question (for clarity).

提交回复
热议问题