Skip to content

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

5 messages · Lida Zeighami, Frederic Ntirenganya, Bert Gunter +1 more

#
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 colnames!

Thanks
#
I am not sure whether it is possible to get a column name from a dataset
without reading the data.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=oa-2115-c>
Checked
by Avast Antivirus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=oa-2115-c>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Frederic Ntirenganya
Maseno University,
African Maths Initiative,
Kenya.
Mobile:(+254)718492836
Email: fredo at aims.ac.za
https://sites.google.com/a/aims.ac.za/fredo/
On Wed, Mar 16, 2016 at 6:59 PM, Lida Zeighami <lid.zigh at gmail.com> 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. "colnames" has no meaning in
this context.

Corrections welcome if I have it wrong!

Cheers,
Bert
Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Mar 16, 2016 at 8:59 AM, Lida Zeighami <lid.zigh at gmail.com> wrote:
#
Thank you Bert and Frederic.

On Wed, Mar 16, 2016 at 11:52 AM, Bert Gunter <bgunter.4567 at gmail.com>
wrote:

  
  
#
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 <lid.zigh at gmail.com> wrote: