[R] error in rank()

J. Andy Royle jar at oriole.er.usgs.gov
Tue Nov 24 16:59:01 CET 1998


For the record, I noticed an error in the way  rank() handles 
missing values

Observe:

> rank(c(1,7,2,6,3,NA,11))
  [1] 1 5 2 4 3 7 6

Rank should give an error when passed missing values.

andy




J. Andy Royle, U.S. Fish and Wildlife Service -----------------------
Adaptive Management and Assessment Team : 11510 American Holly Drive, 
Laurel, MD 20708-4017. phone - 301-497-5673 : fax - 301-497-5706
email- jar at oriole.er.usgs.gov or andy_royle at fws.gov ----------------- 





-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list