Skip to content
Prev 166938 / 398502 Next

Obtain numbers from vector of NAs and numbers

have a look at ?is.na(), e.g.,

dat$v1[!is.na(dat$v1)]


I hope it helps.

Best,
Dimitris
Gundala Viswanath wrote: