Hi,

I am trying to read in weather balloon data, where each file has a header of 
fixed length and
a trailing section of a fixed length. The data section (the table) is of 
variable length.

An example of the data is on:

http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=2011&MONTH=06&FROM=1400&TO=1400&STNM=04018

This data has 97 rows and can be read as:
read.table("http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=2011&MONTH=06&FROM=1400&TO=1400&STNM=04018",skip=10,nrows=97)

If I set nrows=98 I run into the trailing section.

>From day to day the table length changes. Is there a way to get read.table to 
>always read in the correct
length and just stop when it hits the trailing section?

Sincerely,
Halld ór


------
Halldór Björnsson
Sérfræðingur/Research Scientist
Veðurstofu Íslands/Icelandic Met. Office


        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to