[R] FORMAT EDITING

eliza botto eliza_botto at hotmail.com
Mon Feb 11 17:41:10 CET 2013



Dear R users,[IF THE FORMAT OF MY EMAIL IS NOT CLEAR, I HAVE ATTACHED A TEXT FILE FOR A CLEAR VIEW]
I would like to use the R output file in Fortran. my file Is exactly in the following format.
 ELISA/BOTTO  wATER INN               
 FROM 1900 11 1 TO 1996 12 31
 1901.11. 1 447.000
 1901.11. 2 445.000
 1901.11. 3 445.000
 1924.11. 4 445.000
 1924.11. 5 449.000
 1924.11. 6 442.000
 1924.11. 7 445.000
so you can see that there is a single space, in between these lines and also a single space from left margin. i would like to 
keep the left margin space, but really like to eliminate the space between the lines so that i get an output text file which 
could look like
 ELISA/BOTTO  wATER INN               FROM 1900 11 1 TO 1996 12 31 1901.11. 1 447.000 1901.11. 2 445.000 1901.11. 3 445.000 1924.11. 4 445.000 1924.11. 5 449.000 1924.11. 6 442.000 1924.11. 7 445.000
As i am working in fortran i would really like to keep the said format.THANKS IN ADVANCE
ELISA 		 	   		  
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: des.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130211/fe8d6ff6/attachment.txt>


More information about the R-help mailing list