Skip to content
Prev 44930 / 398528 Next

adding header info to write.table

You know...I almost added this to your original post because I thought
you might want to read something back into ArcInfro when you were done!

Look at ?files

The easiest thing to do in R is to keep your header as a text file in
the working directory and then append it to your output file using
'file.append'

write.table(your output file)
file.copy("header.txt", "final.output.txt")
file.append("final.output.txt", "output.dat")

Using 'paste' for the file names makes this easy and flexible.

HTH, Andy