Delete rows with blank values in one particular column

后端 未结 5 1934
Happy的楠姐
Happy的楠姐 2020-12-12 12:56

I am working on a large dataset, with some rows with NAs and others with blanks:

df <- data.frame(ID = c(1:7),                                   
                 


        
5条回答
  •  [愿得一人]
    2020-12-12 13:49

    Alternative solution can be to remove the rows with blanks in one variable:

    df <- subset(df, VAR != "")
    

提交回复
热议问题