[R] mysql retrive question

2005-04-04 Thread simone gabbriellini
hello R-Users, I have this simple but not for me question: I do: res-dbSendQuery(con, SELECT * FROM tabellaProva) myDataFrame-fetch(res) myDataMatrix-as.matrix(myDataFrame[,-1]) namerows(myDataMatrix)-as.character(myDataFrame[,1]) and I have: io tu io 0 1 tu 1 0 my problem is that the

Re: [R] mysql retrive question

2005-04-04 Thread Peter Dalgaard
simone gabbriellini [EMAIL PROTECTED] writes: hello R-Users, I have this simple but not for me question: I do: res-dbSendQuery(con, SELECT * FROM tabellaProva) myDataFrame-fetch(res) myDataMatrix-as.matrix(myDataFrame[,-1]) namerows(myDataMatrix)-as.character(myDataFrame[,1])

Re: [R] mysql retrive question

2005-04-04 Thread David James
simone gabbriellini wrote: hello R-Users, I have this simple but not for me question: I do: res-dbSendQuery(con, SELECT * FROM tabellaProva) myDataFrame-fetch(res) myDataMatrix-as.matrix(myDataFrame[,-1]) namerows(myDataMatrix)-as.character(myDataFrame[,1]) and I have: