[R] Confusing concept of vector and matrix in R

Rolf Turner r.turner at auckland.ac.nz
Tue Mar 30 04:42:05 CEST 2010


On 30/03/2010, at 12:13 PM, yehengxin wrote:

> 
> Why does R need the concept of "Vector"?  In my opinion, it is a useless and
> confusing concept.  A vector is simply a special case of a matrix whose row
> or column number is equal to 1.  When I take submatrix from one matrix and
> if row or column number is 1, R will automatically convert it into a vector. 
> It is very straightforward that a submatrix of a matrix should be a matrix.  
> In each time, I have to use as.matrix() to convert the vector back to
> matrix.    It is very annoying!


Well then, why don't you go away and design and build your own statistics and
data analysis language/package to replace R?  You can then make whatever
design decisions you like, and you won't have to live with the design decisions
made by such silly and inept people as John Chambers and Rick Becker and their ilk.

	cheers,

		Rolf Turner
######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################



More information about the R-help mailing list