Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Jan T Kim
On Wed, Mar 16, 2016 at 03:18:27PM -0400, Duncan Murdoch wrote: > On 16/03/2016 1:40 PM, Jan Kim wrote: > >Barry: that's an interesting hack. > > > >I do feel compelled to make two comments, though, regarding the > >general issue rather than the scraping idea: > > > >(1) If your situation is that

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Lida Zeighami
Thank you Bert and Frederic. On Wed, Mar 16, 2016 at 11:52 AM, Bert Gunter wrote: > Is it really a .Rdata file? If so, the answer is no, AFAIK, since > .Rdata files are serialized (binary) versions of e.g. worksheets that > can contain many different data objects.

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Duncan Murdoch
On 16/03/2016 1:40 PM, Jan Kim wrote: Barry: that's an interesting hack. I do feel compelled to make two comments, though, regarding the general issue rather than the scraping idea: (1) If your situation is that that image (.RData file) is the only copy of the data, you'll need to rescue the

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Frederic Ntirenganya
I am not sure whether it is possible to get a column name from a dataset without reading the data. Checked by Avast Antivirus. www.avast.com

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Bert Gunter
Is it really a .Rdata file? If so, the answer is no, AFAIK, since .Rdata files are serialized (binary) versions of e.g. worksheets that can contain many different data objects. "colnames" has no meaning in this context. Corrections welcome if I have it wrong! Cheers, Bert Bert Gunter "The

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Jan Kim
Barry: that's an interesting hack. I do feel compelled to make two comments, though, regarding the general issue rather than the scraping idea: (1) If your situation is that that image (.RData file) is the only copy of the data, you'll need to rescue the data from that as soon as possible

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Loris Bennett
Jan T Kim writes: > On Wed, Mar 16, 2016 at 03:18:27PM -0400, Duncan Murdoch wrote: >> On 16/03/2016 1:40 PM, Jan Kim wrote: >> >Barry: that's an interesting hack. >> > >> >I do feel compelled to make two comments, though, regarding the >> >general issue rather than the

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Richard M. Heiberger
Barry's solution works with Windows without cygwin. You do need Rtools, available from the Windows page on CRAN Rtools does not have "gunzip", but that is just an abbreviation for "gzip -d". x:\HOME\rmh\HH-R.package>path path

[R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Lida Zeighami
Hi, I have a huge .RData file and I need just to get the colnames of it. so is there any way to reach the column names without loading or reading the whole file? Since the file is so big and I need to repeat this process several times, so it takes so long to load the file first and then take the

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-18 Thread Barry Rowlingson
You *might* be able to get them from the raw file... First, I don't quite know what "colnames" of an .RData file means. "colnames" are the column names of a matrix (or data frame), so I'll assume your .RData file contains exactly one data frame and you want to column names of it. So let's create

Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-18 Thread Boris Steipe
However: if you need to repeat the process, as you wrote, you could store the column names in a separate object for future access after your first read. B. On Mar 16, 2016, at 12:59 PM, Lida Zeighami wrote: > Thank you Bert and Frederic. > > On Wed, Mar 16, 2016 at 11:52