Re: [R] print elements' placings from vector

2011-05-04 Thread derek
Yes, thank you. -- View this message in context: http://r.789695.n4.nabble.com/print-elements-placings-from-vector-tp3496645p3497080.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] print elements' placings from vector

2011-05-04 Thread Dennis Murphy
Hi: Is this what you're after? > z=c(1,3,0.5,6,8,10,2,2,3,4,7,3) > which(z > 2) [1] 2 4 5 6 9 10 11 12 HTH, Dennis On Wed, May 4, 2011 at 1:02 PM, derek wrote: > Dear R, > > Here is a code: > z=c(1,3,0.5,6,8,10,2,2,3,4,7,3) > z[z>2] > > I dont want print the elements, but theirs placings

[R] print elements' placings from vector

2011-05-04 Thread derek
Dear R, Here is a code: z=c(1,3,0.5,6,8,10,2,2,3,4,7,3) z[z>2] I dont want print the elements, but theirs placings in vector. -- View this message in context: http://r.789695.n4.nabble.com/print-elements-placings-from-vector-tp3496645p3496645.html Sent from the R help mailing list archive at