使用read_delim从URL读取压缩文件

时间:2015-04-27 13:13:33

标签: r

有没有其他方法使用readr包中的read_delim函数从URL读取.gz文件而不是使用连接? e.g:

temp <- tempfile()
download.file("http://hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeHaibMethylRrbs/wgEncodeHaibMethylRrbsImr90UwSitesRep1.bed.gz",destfile=temp,method="curl")
d <- read_delim(gzfile(temp), delim='\t', skip=1)

0 个答案:

没有答案
相关问题