[R] Using read.table for importing gz file

David Winsemius dw|n@em|u@ @end|ng |rom comc@@t@net
Sat Aug 10 23:51:54 CEST 2019


Have you tried using readLines in the manner illustrated on the ?gzfile 
help page?


David.

On 8/10/19 12:29 PM, Spencer Brackett wrote:
> Hello,
>
> I am trying to read the following Xena dataset into R for data analysis:
> https://tcga.xenahubs.net/download/TCGA.GBMLGG.sampleMap/HumanMethylation450.gz
>
> I tried to run the following read.table(gzfile("HumanMethylation450.gz")),
> but R ended up crashing as a result.
>
> Is there perhaps a way to use read.table with fread in some way to do this?
>
> Many thanks,
>
> Spencer
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using 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.



More information about the R-help mailing list