Lida Zeighami
2016-Mar-16 15:59 UTC
[R] How to reach the column names in a huge .RData file without loading it
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]]
Frederic Ntirenganya
2016-Mar-16 16:13 UTC
[R] How to reach the column names in a huge .RData file without loading it
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:> 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]]
Bert Gunter
2016-Mar-16 16:52 UTC
[R] How to reach the column names in a huge .RData file without loading it
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.
Lida Zeighami
2016-Mar-16 16:59 UTC
[R] How to reach the column names in a huge .RData file without loading it
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]]