Consider the dataframe:
data<-data.frame(a=c(1,3,4,5,6,NA,6,NA),b=c(1,NA,NA,4,6,7,NA,1))
I want to delete the entire line when NA exists in variable 'a' . So, what I hope is:
data
a b
1 1 1
2 3 NA
3 4 NA
4 5 4
5 6 6
6 6 N...
asked on
05.10.2018 / 18:16