3
I’m sure there’s a way to subset and keep the NA values in the R. However, when I apply this function it is also disappearing from my base the NA values. I’m just using the formula below:
dados1<-data.frame(subset(dados,V2!="CNPJ"))
So you’re missing the valuables from the V2 that’s in NA. What’s the best way to make this subset?
you don’t need to call the function
data.frame
again in this case. Enoughsubset(dados,V2!="CNPJ"|is.na(V2))
– Daniel Falbel
Beauty, Daniel.
– T. Veiga