[R] cleaning up a vector

mlarkin at rsmas.miami.edu mlarkin at rsmas.miami.edu
Fri Oct 1 19:51:00 CEST 2010


I calculated a large vector.  Unfortunately, I have some measurement error
in my data and some of the values in the vector are erroneous.  I ended up
wih some Infs and NaNs in the vector.  I would like to filter out the Inf
and NaN values and only keep the values in my vector that range from 1 to
20.  Is there a way to filter out Infs and NaNs in R and end up with a
clean vector?

Mike



More information about the R-help mailing list