[R] Which - value not present

vioravis vioravis at gmail.com
Wed Nov 10 03:55:35 CET 2010


I am trying to use which function to obtain the index of a value in a
dataframe. Depending on whether the value is present in the dataframe or not
I am performing further operations to the dataframe.

However, if the value is not present in the dataframe, I am getting an
integer(0).

How do I check for integer(0)? something like is.na???

Thank you.

Ravishankar






-- 
View this message in context: http://r.789695.n4.nabble.com/Which-value-not-present-tp3035455p3035455.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list