Description Usage Arguments Details Value Author(s) See Also Examples
duplicated2()
determines which elements of a vector or data
frame are duplicates, and returns a logical vector indicating which
elements (rows) are duplicates.
1 | duplicated2(x, bothWays=TRUE, ...)
|
x |
a vector or a data frame or an array or |
bothWays |
if |
... |
further arguments passed down to |
The standard duplicated
function (in package:base
)
only returns TRUE
for the second and following copies of each
duplicated value (second-to-last and earlier when
fromLast=TRUE
). This function returns all duplicated
elementes, including the first (last) value.
When bothWays
is FALSE
, duplicated2()
defaults to
a duplicated
call. When bothWays
is TRUE
,
the following call is being executed:
duplicated(x, ...) | duplicated(x, fromLast=TRUE, ...)
For a vector input, a logical vector of the same length as
x
. For a data frame, a logical vector with one element for
each row. For a matrix or array, and when MARGIN = 0
, a
logical array with the same dimensions and dimnames.
For more details see duplicated
.
Liviu Andronic
1 2 3 4 |
sh: 1: /usr/bin/perl: Permission denied
gdata: Unable to load perl libaries needed by read.xls()
gdata: to support 'XLX' (Excel 97-2004) files.
gdata: Unable to load perl libaries needed by read.xls()
gdata: to support 'XLSX' (Excel 2007+) files.
gdata: Run the function 'installXLSXsupport()'
gdata: to automatically download and install the perl
gdata: libaries needed to support Excel XLS and XLSX formats.
Attaching package: ‘gdata’
The following object is masked from ‘package:stats’:
nobs
The following object is masked from ‘package:utils’:
object.size
The following object is masked from ‘package:base’:
startsWith
Warning message:
In system(cmd, intern = TRUE) :
running command ''/usr/bin/perl' '/usr/lib/R/site-library/gdata/perl/supportedFormats.pl'' had status 126
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
143 5.8 2.7 5.1 1.9 virginica
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
102 5.8 2.7 5.1 1.9 virginica
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
102 5.8 2.7 5.1 1.9 virginica
143 5.8 2.7 5.1 1.9 virginica
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.