[R] simple index question

From: Mu Tian <muster_at_gmail.com>
Date: Fri 02 Jun 2006 - 01:06:10 EST

I want to get index number of 0s, like

x <- c(1, 2, 0, 3, 0, 4)

I want an output of

3, 5

Thank you.

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 02 01:26:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 02 Jun 2006 - 04:10:27 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.