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

Lida Zeighami lid.zigh at gmail.com
Wed Mar 16 17:59:36 CET 2016


Thank you Bert and Frederic.

On Wed, Mar 16, 2016 at 11:52 AM, Bert Gunter <bgunter.4567 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:
> > 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
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list