Re: [R] Different results when converting a matrix to a data.frame

2016-11-16 Thread David Winsemius
> On Nov 16, 2016, at 8:43 AM, Jeff Newmiller wrote: > > I will start by admitting I don't know the answer to your question. > > However, I am responding because I think this should not be an issue in real > life use of R. Data frames are lists of distinct vectors,

Re: [R] Different results when converting a matrix to a data.frame

2016-11-16 Thread Jeff Newmiller
I will start by admitting I don't know the answer to your question. However, I am responding because I think this should not be an issue in real life use of R. Data frames are lists of distinct vectors, each of which has its own reason for being present in the data, and normally each has its

[R] Different results when converting a matrix to a data.frame

2016-11-16 Thread G . Maubach
Hi All, I build an empty dataframe to fill it will values later. I did the following: -- cut -- matrix(NA, 2, 2) [,1] [,2] [1,] NA NA [2,] NA NA > data.frame(matrix(NA, 2, 2)) X1 X2 1 NA NA 2 NA NA > as.data.frame(matrix(NA, 2, 2)) V1 V2 1 NA NA 2 NA NA -- cut -- Why does