The R Project SVN R

Rev

Rev 73118 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73118 Rev 74460
Line 12... Line 12...
12
}
12
}
13
\usage{
13
\usage{
14
rank(x, na.last = TRUE,
14
rank(x, na.last = TRUE,
15
     ties.method = c("average", "first", "last", "random", "max", "min"))
15
     ties.method = c("average", "first", "last", "random", "max", "min"))
16
}
16
}
17
\arguments{
17
\arguments{% x: actually, only  x[!is.na(x)]  must be such a vector
18
  \item{x}{a numeric, complex, character or logical vector.}
18
  \item{x}{a numeric, complex, character or logical vector.}
19
  \item{na.last}{for controlling the treatment of \code{\link{NA}}s.
19
  \item{na.last}{for controlling the treatment of \code{\link{NA}}s.
20
    If \code{TRUE}, missing values in the data are put last; if
20
    If \code{TRUE}, missing values in the data are put last; if
21
    \code{FALSE}, they are put first; if \code{NA}, they are removed; if
21
    \code{FALSE}, they are put first; if \code{NA}, they are removed; if
22
    \code{"keep"} they are kept with rank \code{NA}.}
22
    \code{"keep"} they are kept with rank \code{NA}.}