I just learnt the other day “complete.cases” function. The following code is giving me this error message:
Error in complete.cases(V3, V4) : not all arguments have the same length
which’s legit. Anyways, same exact code is being executed on R for windows, and giving me an output without error message.
V3<-c(1,2,3,4,5,6,7,NA,19,NA,98,NA,NA) V4<-c("A",NA,"B",NA,"C",NA,"D",NA,"E","F","G",NA) E<- complete.cases(V3,V4) E V3[E] V4[E]
Can someone explain this to me? Thank you