Please...
?"["
Online tutorial "An Introduction to R."
I think you'll find everything you need in these.
-- Bert
On Thu, May 26, 2011 at 12:39 PM, Dat Mai wrote:
> When I use the as.matrix, the data.frame does turn into a matrix, but I
> cannot change the dimensions of the matrix. I'd still
When I use the as.matrix, the data.frame does turn into a matrix, but I
cannot change the dimensions of the matrix. I'd still want it to have that
pseudo cartesian format (e.g. [a1,b1], [a2,b2])
On Thu, May 26, 2011 at 6:58 PM, David Winsemius wrote:
>
> On May 26, 2011, at 1:53 PM, Andy Zhu wrot
On May 26, 2011, at 1:53 PM, Andy Zhu wrote:
Dat:
1. you can use as.matrix to convert data.frame to matrix;
2. it is likely that the internal representation of your data.frame
may not be numerical value; matrix can only take on numeric.
Not true. Can be any single mode, including "charac
Dat:
1. you can use as.matrix to convert data.frame to matrix;
2. it is likely that the internal representation of your data.frame may not be
numerical value; matrix can only take on numeric.
--- On Thu, 5/26/11, Dat Mai wrote:
From: Dat Mai
Subject: [R] matrix not working
To: r-help@r-pro
4 matches
Mail list logo