[R] adding header info to write.table

Liaw, Andy andy_liaw at merck.com
Thu Feb 26 22:21:58 CET 2004


I suppose one way to do it is to write the header info to the file first
(e.g., through connections, or sink(), etc.), then do write.table(...,
append=TRUE).

HTH,
Andy

> From: femke
> 
> Hello,
> 
> Could someone please tell if there is a way to append header 
> info to the top of an exported dataframe (exported with 
> write.table).  I want to append the following, which are the 
> defininitions for an asciigrid:
> 
> ncols         532
> nrows         999
> xllcorner     510465
> yllcorner     4766375
> cellsize      30
> NODATA_value  -9999
> 
> 
> Thanks very much,
> 
> femke
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}




More information about the R-help mailing list