[R] Error in unique() man page

2019-05-26 Thread Juan Gomez
Function unique() man page states that: "The array method calculates for each element of the dimension specified by MARGIN if the remaining dimensions are identical to those for an earlier element (in row-major order). " I think that the last precission: "(in row-major order)" is meaningless here,

[R] Fwd: error in duplicated() man page

2019-05-14 Thread Juan Gomez
-- Forwarded message - De: Juan Gomez Date: vie., 10 may. 2019 a las 11:12 Subject: Re: [R] error in duplicated() man page To: Bert Gunter Coming back to my example, which I think illustrates my point, we have 3x2 groups (as specified in MARGIN dimensions) with one cell in each

[R] error in duplicated() man page

2019-05-09 Thread Juan Gomez
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:

Re: [R] which() function help page precision

2018-11-17 Thread Juan Gomez
Hi again (, I am the PO from my own email account) I agree that the word "basically" puts the NA issues aside. But my point is that R subsetting behavior when there are NAs in a logical index is quite tricky to say the less, and deserves the trouble of pointing it out in every place it is