Skip to content

No subject

2 messages · Themba Nyirenda, Torsten Hothorn

#
hi,

I would like to how to count the number of ties in a vector or matrix picking a column at a time,(ie any type of array)

themba

 



---------------------------------

Yahoo! Movies - coverage of the 74th Academy Awards®
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020327/ac1131ca/attachment.html
#
R> x <- c(1,1,1:10)
R> duplicated(x)
 [1] FALSE  TRUE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
FALSE
R> sum(duplicated(x))
[1] 2
R> 

and apply and friends for matrices. A subject would be helpful ...

Torsten
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._