Re: [R] Odp: storing text and decimal values in a matrix form

2007-09-11 Thread Petr PIKAL
Hi Gonçalo Ferraz <[EMAIL PROTECTED]> napsal dne 11.09.2007 16:35:57: > Thanks! What is the easiest way of declaring an empty data frame. Is there > anything similar to: > matrix(0,x,y) > In the help files, I am only finding longer commands that ask me to specify > each individual column. Yo

[R] Odp: storing text and decimal values in a matrix form

2007-09-11 Thread Petr PIKAL
Hi Although not specifically stated in help page, matrix is a vector with dim attribute. Therefore it can have only one type of values either numeric or character or logical or factor. So if you want textual and numeric values you probably have to stick with data frames. Regards Petr [EMAIL PR