[R] Dataverse (reading files with .tab and .7z suffixes)
Thomas Levine
_ @end|ng |rom thom@@|ev|ne@com
Sun May 13 13:13:42 CEST 2018
Ilio Fornasero writes:
> I am trying to find a way to retrieve data from Harvard Dataverse website.
> I usually don't have problem in web-scraping data but the problem here is
> that there are a bunch of data formats such as .tab, .7z and so and
> I just can't find a way to retrieve the data I am interested in woth an
> unique solution.
> Any hint?
.tab does not identify a file format. That file might be in a read.csv
format or a read.fwf format.
No 7z decompressor seems to exist in CRAN, (I checked `findFn('7z')`.)
so you could use system/system2: `system2('7z', c('e', ...)), or I think
7z.exe on Windows. You would need to install p7zip and read the manual
(`man 7z` on a Unix-like system).
Please send an example.
More information about the R-help
mailing list