[R] detect repeated number in a vector
liujb
liujulia7 at yahoo.com
Wed Oct 8 20:36:29 CEST 2008
Dear R users,
I have this vector that consists numeric numbers. Is there a command that
detects the repeated numbers in a vector and returns the index of the
repeated numbers (or the actual numbers)? For example, v <- c(3,4,5,7,4).
The command would return me index 2 and 5 (or the repeated number, 4).
Thank you very much,
Julia
--
View this message in context: http://www.nabble.com/detect-repeated-number-in-a-vector-tp19884768p19884768.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list