Re: [R] matrix not working

2011-05-26 Thread Bert Gunter
g "character", "list", and >> "logical". >> >> -- >> david. >> >> >> >>> >>> --- On Thu, 5/26/11, Dat Mai wrote: >>> >>> From: Dat Mai >>> Subject: [R]  matrix not working >>>

Re: [R] matrix not working

2011-05-26 Thread Dat Mai
ngle mode, including "character", "list", and > "logical". > > -- > david. > > > >> >> --- On Thu, 5/26/11, Dat Mai wrote: >> >> From: Dat Mai >> Subject: [R] matrix not working >> To: r-help@r-project.org

Re: [R] matrix not working

2011-05-26 Thread David Winsemius
"character", "list", and "logical". -- david. --- On Thu, 5/26/11, Dat Mai wrote: From: Dat Mai Subject: [R] matrix not working To: r-help@r-project.org Date: Thursday, May 26, 2011, 12:24 PM Hello All, I'm trying to create a matrix from a dataframe (let&

Re: [R] matrix not working

2011-05-26 Thread Andy Zhu
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

[R] matrix not working

2011-05-26 Thread Dat Mai
Hello All, I'm trying to create a matrix from a dataframe (let's call it df): ..a..b.c.d a inputs output b inputs output c inputs output d inputs output e inputs output The inputs are represented by columns a and b The outputs are represented by