I think there is an error in duplicated() help page when it states that:
"The array method calculates for each element of the sub-array
specified by MARGIN if the remaining dimensions are identical to those
for an earlier (or later, when fromLast = TRUE) element (in row-major
order). "
Instead of:
"... (in column-major order)"

For instance:
duplicated(array(c(1,2,3,2,5,6),c(3,2)), MARGIN=1:2)
      [,1]  [,2]
[1,] FALSE  TRUE
[2,] FALSE FALSE
[3,] FALSE FALSE
>

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to