Seth Falcon <[EMAIL PROTECTED]> writes: > > Similar things happen in many similar circumstances. > > Here's a similar thing:
Not really, no? > > v <- 1:5 > > v > [1] 1 2 3 4 5 > > v[mustBeDocumentedSomewhere=3] > [1] 3 > > And this can be confusing if one thinks that subsetting is really a > function and behaves like other R functions w.r.t. to treatment of > named arguments: > > > m <- matrix(1:4, nrow=2) > > m > [,1] [,2] > [1,] 1 3 > [2,] 2 4 > > m[j=2] > [1] 2 Or even > m[j=2,i=] [1] 2 4 However, what would the argument names be in the >2-dim case? i, j are used only in help("[") and that page is quite specific about explaining that named matching doesn't work. -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel