I have a vector 'a' which has numeric and non-numeric elements. I want to extract the numeric elements from the vector and build a new vector. How do I do this?
So if a is:
a = c(15, 3, 44, "hello", 4, "NA")
I want to get a vector with four elements namely elements 15 3 44 and 4
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…