Re: [R] how to best add columns to a matrix with many columns

2013-05-03 Thread David Romano
Sorry, Jeff, I misspoke: the 'matrix' data.m is really a data frame -- I was just thinking about it as a matrix since it's the numeric part of df1, and didn't realize the thought made it's way in the message. So the memory issues are unrelated to converting between data frames and matrices. -Da

Re: [R] how to best add columns to a matrix with many columns

2013-05-03 Thread Jeff Newmiller
I am not seeing any good justification in your description for converting to matrix if you are planning to convert it back to data frame. Memory is going to be inefficiently-used if you do this. --- Jeff Newmiller

[R] how to best add columns to a matrix with many columns

2013-05-03 Thread David Romano
Hi everyone, I have large data frame, say df1, with 165K columns, and all but the first four columns of df1 are numeric. I transformed the numeric data and obtained a matrix, call it data.m, with 165K - 4 columns, and then tried to create a second data frame by replacing the numeric columns of