The R Project SVN R

Rev

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

Rev 70019 Rev 70856
Line 20... Line 20...
20
  \item{\dots}{a sequence of numeric, character or logical
20
  \item{\dots}{a sequence of numeric, character or logical
21
    vectors, all of the same length, or a classed \R object.}
21
    vectors, all of the same length, or a classed \R object.}
22
}
22
}
23
\details{
23
\details{
24
  The function partially sorts the elements so that identical values are
24
  The function partially sorts the elements so that identical values are
25
  adjacent. \code{NA} values come first.  This is guaranteed to be
25
  adjacent. \code{NA} values come last.  This is guaranteed to be
26
  stable, so ties are preserved, and if the data are already
26
  stable, so ties are preserved, and if the data are already
27
  grouped/sorted, the grouping is unchanged.  This is useful for
27
  grouped/sorted, the grouping is unchanged.  This is useful for
28
  aggregation and is particularly fast for character vectors.
28
  aggregation and is particularly fast for character vectors.
29
 
29
 
30
  Under the covers, the \code{"radix"} method of \code{\link{order}} is
30
  Under the covers, the \code{"radix"} method of \code{\link{order}} is
31
  used, and the same caveats apply, including reduced precision when
31
  used, and the same caveats apply, including restrictions on character
32
  comparing real values, restrictions on character encodings and lack of
32
  encodings and lack of support for long vectors (those with
33
  support for long vectors (those with \eqn{2^{31}}{2^31} or more elements).
33
  \eqn{2^{31}}{2^31} or more elements). Real-valued numbers are slightly
-
 
34
  rounded to account for numerical imprecision.
34
  
35
  
35
  Like \code{order}, for a classed \R object the grouping is based on
36
  Like \code{order}, for a classed \R object the grouping is based on
36
  the result of \code{\link{xtfrm}}.
37
  the result of \code{\link{xtfrm}}.
37
}
38
}
38
 
39