Skip to content
Back to formatted view

Raw Message

Message-ID: <20040227104030.A2137@hortresearch.co.nz>
Date: 2004-02-26T21:40:30Z
From: Patrick Connolly
Subject: adding header info to write.table
In-Reply-To: <006a01c3fcad$b85202b0$72180281@jawks2>; from femke@geog.umd.edu on Thu, Feb 26, 2004 at 04:15:53PM -0500

On Thu, 26-Feb-2004 at 04:15PM -0500, femke wrote:

|> 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

?write

then use append = TRUE when using write.table

HTH

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~