~showard314/ubuntu/karmic/r-base/remove_start_comments

« back to all changes in this revision

Viewing changes to src/library/base/man/duplicated.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-01-19 12:40:24 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090119124024-abxsf4e0y7713w9m
Tags: 2.8.1-2
debian/control: Add another Build-Depends: exclusion for the 
'kfreebsd-i386 kfreebsd-amd64 hurd-i386' architecture to openjdk-6-jdk.
Thanks to Petr Salinger for the heads-up.               (Closes: 512324)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  \item{incomparables}{a vector of values that cannot be compared.
30
30
    \code{FALSE} is a special value, meaning that all values can be
31
31
    compared, and may be the only value accepted for methods other than
32
 
    the default.}
 
32
    the default.  It will be coerced internally to the same type as
 
33
       \code{x}.}
33
34
  \item{fromLast}{logical indicating if duplication should be considered
34
35
    from the reverse side, i.e., the last (or rightmost) of identical
35
36
    elements would correspond to \code{duplicated=FALSE}.}
52
53
  The array method calculates for each element of the sub-array
53
54
  specified by \code{MARGIN} if the remaining dimensions are identical
54
55
  to those for an earlier (or later, when \code{fromLast=TRUE}) element
55
 
  (in row-major order).  This would most
56
 
  commonly be used to find duplicated rows (the default) or columns
57
 
  (with \code{MARGIN = 2}).
 
56
  (in row-major order).  This would most commonly be used to find
 
57
  duplicated rows (the default) or columns (with \code{MARGIN = 2}).
58
58
 
59
59
  Missing values are regarded as equal, but \code{NaN} is not equal to
60
60
  \code{NA_real_}.
61
 
 
62
 
  Strings with embedded nuls of the same length will be considered
63
 
  equal if they agree when truncated at the first nul.
 
61
  
 
62
  Values in \code{incomparables} will never be marked as duplicated.
 
63
  This is intended to be used for a fairly small set of values and will
 
64
  not be efficient for a very large set.
 
65
}
 
66
\value{
 
67
  For a vector input, a logical vector of the same length as
 
68
  \code{x}.  For a data frame, a logical vector with one element for
 
69
  each row.  For a matrix or array, a logical array with the same
 
70
  dimensions and dimnames.
64
71
}
65
72
\section{Warning}{
66
73
  Using this for lists is potentially slow, especially if the elements