[R] How to get vector of poitions in a vector ?

vikrant vikrant.shimpi at tcs.com
Fri Jul 23 13:12:44 CEST 2010


I have a vector a = c(1,0,0,0,1,0,4,0,0,0)
Now I want to get a vector of positions in a vector a where the value is non
zero..
How to do it??


-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-get-vector-of-poitions-in-a-vector-tp2299997p2299997.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list