Skip to content
Prev 87266 / 398506 Next

Adding header lines to a dataframe that is exported using write.csv

Just a tips: When you add headers to tabulate files like yours, it is
convenient to start each header line with a '#' (like an R comment),
because then read.table() will not complain about the header lines. 
It is easy to strip the '#' off the header lines, i.e. grep("^#", "",
hlines) before further parsing.

/Henrik
On 2/25/06, Mark <mtb954 at gmail.com> wrote:
--
Henrik Bengtsson
Mobile: +46 708 909208 (+1h UTC)