[R] error in duplicated() man page

Juan Gomez ju@ngomezdu@@o @end|ng |rom gm@||@com
Thu May 9 12:06:15 CEST 2019


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
>



More information about the R-help mailing list