Re: [R] building a data.frame from a matrix: preventing conversion to factors

2007-11-13 Thread Prof Brian Ripley
On Wed, 14 Nov 2007, Christian Gold wrote: > Thanks for your reply. I have tried the reproducible example you have > provided (thanks!) in 3 different versions of R, and get what you get in R > version 2.5.1, but in 2.3.1 (which I normally use) and 2.1.0 (which I still > have installed) I get f

Re: [R] building a data.frame from a matrix: preventing conversion to factors

2007-11-13 Thread Christian Gold
Thanks for your reply. I have tried the reproducible example you have provided (thanks!) in 3 different versions of R, and get what you get in R version 2.5.1, but in 2.3.1 (which I normally use) and 2.1.0 (which I still have installed) I get factors. I guess this means I should switch to the ne

Re: [R] building a data.frame from a matrix: preventing conversion to factors

2007-11-13 Thread Prof Brian Ripley
I am trying to build a data.frame from some vectors and some matrices and seem to be unable to find out how to do this without converting everything to factors. I can prevent conversion of the vectors by using I(), as explained in help(data.frame). However, this doesn't help with the matrices: if I

[R] building a data.frame from a matrix: preventing conversion to factors

2007-11-13 Thread Christian Gold
Dear all: I am trying to build a data.frame from some vectors and some matrices and seem to be unable to find out how to do this without converting everything to factors. I can prevent conversion of the vectors by using I(), as explained in help(data.frame). However, this doesn't help with the mat