I have a dataset like that
v1   v2   v3
1    NA   NA
2    1    NA
3    NA   2
4    NA   NA
5    9    0
6    0    2
I want to subset a dataframe that both not contain missing values. The desired outcome should be:
   v1   v2   v3
    5    9    0
    6    0    2
I use follwoing syntax, but it seems is.na could not be applied to a specific vector
mydata<-mydata[with(mydata, any(!is.na(mydata$v2) & !is.na(mydata$v3))),] 
**The warning message is that**
is.na() applied to non-(list or vector) of type 'NULL' 
Could anyone point me in the right direction?
 
    