Re: [Rd] ambiguity in the documented return value of Null() from package MASS

2014-11-10 Thread William Dunlap
> Presumably, the help file wording goes back to S-PLUS which > (to my recollection) didn't allow zero-extent matrices. Splus (and S) started having reasonable support for zero-extent matrices in May 2001 (i.e., Splus 6.0, which I think corresponds to S version 4-m of June 2, 1999), Splus5.0 (Nov

Re: [Rd] ambiguity in the documented return value of Null() from package MASS

2014-11-10 Thread Martin Maechler
> peter dalgaard > on Mon, 10 Nov 2014 14:47:16 +0100 writes: > There is a maintainer for this contributed package... > However, a zero column vector _is_ numeric(0) -- with > dimension attributes c(3,0). > structure(numeric(0),dim=c(3,0)) > c(Null(diag(3)))

Re: [Rd] ambiguity in the documented return value of Null() from package MASS

2014-11-10 Thread peter dalgaard
There is a maintainer for this contributed package... However, a zero column vector _is_ numeric(0) -- with dimension attributes c(3,0). structure(numeric(0),dim=c(3,0)) c(Null(diag(3))) I.e., the ambiguity is pretty slight. Presumably, the help file wording goes back to S-PLUS which (to my

[Rd] ambiguity in the documented return value of Null() from package MASS

2014-11-10 Thread Georgi Boshnakov
Hi, Function Null from package MASS seems to return a matrix with zero columns and the expected number of rows when the null space of the argument contains only the zero vector, e.g. > library(MASS) > diag(nrow=3) [,1] [,2] [,3] [1,]100 [2,]010 [3,]001