The R Project SVN R

Rev

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

Rev 24700 Rev 25360
Line 7... Line 7...
7
\title{Extract Unique Elements}
7
\title{Extract Unique Elements}
8
\description{
8
\description{
9
  \code{unique} returns a vector, data frame or array like \code{x}
9
  \code{unique} returns a vector, data frame or array like \code{x}
10
  but with duplicate  elements removed.
10
  but with duplicate  elements removed.
11
}
11
}
12
\synopsis{
-
 
13
unique(x, incomparables = FALSE, ...)
-
 
14
\method{unique}{array}(x, incomparables = FALSE, MARGIN = 1, ...)
-
 
15
}
-
 
16
\usage{
12
\usage{
17
unique(x, incomparables = FALSE, \dots)
13
unique(x, incomparables = FALSE, \dots)
-
 
14
 
18
unique.array(x, incomparables = FALSE, MARGIN = 1, \dots)
15
\method{unique}{array}(x, incomparables = FALSE, MARGIN = 1, \dots)
19
}
16
}
20
\arguments{
17
\arguments{
21
  \item{x}{an atomic vector or a data frame or an array.}
18
  \item{x}{an atomic vector or a data frame or an array.}
22
  \item{incomparables}{a vector of values that cannot be compared.
19
  \item{incomparables}{a vector of values that cannot be compared.
23
    Currently, \code{FALSE} is the only possible value, meaning that all
20
    Currently, \code{FALSE} is the only possible value, meaning that all