Re: [R] Problem with the matrix() function.

2018-11-07 Thread David L Carlson
Message- From: R-help On Behalf Of Bert Gunter Sent: Wednesday, November 7, 2018 2:49 PM To: Rolf Turner Cc: R-help Subject: Re: [R] Problem with the matrix() function. I have no opinion on your queries, but whatever is done, it should be properly documented, which appears not to be the case pr

Re: [R] Problem with the matrix() function.

2018-11-07 Thread Bert Gunter
I have no opinion on your queries, but whatever is done, it should be properly documented, which appears not to be the case presently afaics. -- Bert On Wed, Nov 7, 2018 at 12:33 PM Rolf Turner wrote: > > In the course of writing a bit of somewhat convoluted code I recently > made a silly err

[R] Problem with the matrix() function.

2018-11-07 Thread Rolf Turner
In the course of writing a bit of somewhat convoluted code I recently made a silly error that revealed the following phenomenon: m <- matrix(1:10,nrow=2,ncol=c(5,4)) produces [,1] [,2] [,3] [,4] [,5] [1,]13579 [2,]2468 10 That is, the nonsense v