[R] open unknown file format in R

Pascal Oettli kridox at ymail.com
Tue Mar 18 00:51:01 CET 2014


Hello,

It is in binary format. I didn't use stations. But to read the gridded
format, I used:

> readBin(fid, numeric(), n=1e8, size=4, signed=TRUE, endian='little')

where file is the connection created with file()

Hope this helps,
Pascal




On Tue, Mar 18, 2014 at 4:06 AM, eliza botto <eliza_botto at hotmail.com> wrote:
> Dear R-Family,
> I have just downloaded a massive data file from internet (AphroJP_62STN_V1005.1900.gz). Apparently, the file is compressed with .gz. When I uncompressed
> it, the file was saved in the name (AphroJP_62STN_V1005.1900) of unknown format. How can I open it in R?
> thankyou very much indeed in advance,
> Eliza
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan




More information about the R-help mailing list