Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
Dear Pascal, Dan and Macqueen, Thankyou very much for your help. With pascal' code I was managed reading the file. Thanks, Eliza From: kri...@ymail.com Date: Tue, 18 Mar 2014 08:51:01 +0900 Subject: Re: [R] open unknown file format in R To: eliza_bo...@hotmail.com CC: r-help@r-project.org

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
of 22 stations. Thankyou very much in advance, Eliza From: kri...@ymail.com Date: Tue, 18 Mar 2014 08:51:01 +0900 Subject: Re: [R] open unknown file format in R To: eliza_bo...@hotmail.com CC: r-help@r-project.org Hello, It is in binary format. I didn't use stations. But to read

Re: [R] open unknown file format in R

2014-03-18 Thread Pascal Oettli
and I am only interest in data of 22 stations. Thankyou very much in advance, Eliza From: kri...@ymail.com Date: Tue, 18 Mar 2014 08:51:01 +0900 Subject: Re: [R] open unknown file format in R To: eliza_bo...@hotmail.com CC: r-help@r-project.org Hello, It is in binary format. I didn't

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
: Re: [R] open unknown file format in R To: eliza_bo...@hotmail.com CC: r-help@r-project.org Hello, It is not around the world. It is only for Japan (AphroJP, 123°E-146°E, 24°N-46°N, resolution 0.05x0.05 i.e. 440 rows x 460 columns). You can store in a Raster* object then extract the grid

Re: [R] open unknown file format in R

2014-03-18 Thread Pascal Oettli
°E, 24°N-46°N, resolution 0.05x0.05 i.e. 440 rows x 460columns)? Thanks, Eliza From: kri...@ymail.com Date: Tue, 18 Mar 2014 21:39:58 +0900 Subject: Re: [R] open unknown file format in R To: eliza_bo...@hotmail.com CC: r-help@r-project.org Hello, It is not around the world

[R] open unknown file format in R

2014-03-17 Thread eliza botto
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

Re: [R] open unknown file format in R

2014-03-17 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of eliza botto Sent: Monday, March 17, 2014 12:06 PM To: r-help@r-project.org Subject: [R] open unknown file format in R Dear R-Family, I have just downloaded a massive data

Re: [R] open unknown file format in R

2014-03-17 Thread MacQueen, Don
If it's a text file, any of the usual functions, such as read.table(), scan(), etc. If it's a binary file, try readBin() It's up to you to find out what kind of a file it is, and how the data is structured within the file. (hint: on a unix-alike system, the 'file' command will tell you something

Re: [R] open unknown file format in R

2014-03-17 Thread Pascal Oettli
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