Re: [R] Multiple comment.char under read.table

2008-06-07 Thread Gundala Viswanath
Thanks Daniel. Appreciate your info. - G.V. On Fri, Jun 6, 2008 at 9:51 PM, Daniel Folkinshteyn <[EMAIL PROTECTED]> wrote: > according to the helpfile, comment only takes one character, so you'll have > to do some 'magic' :) > > i'd suggest to first run mydata through sed, and replace one of the

Re: [R] Multiple comment.char under read.table

2008-06-06 Thread Daniel Folkinshteyn
according to the helpfile, comment only takes one character, so you'll have to do some 'magic' :) i'd suggest to first run mydata through sed, and replace one of the comment chars with another, then run read.table with the one comment char that remains. sed -e 's/^\^/!/' mydata.txt > mydata2

[R] Multiple comment.char under read.table

2008-06-06 Thread Gundala Viswanath
Hi all, Suppose I want to read a text file with read.table. It containt lines to be skipped that begins with "!" and "^". Is there a way to include this two values in the read.table function? I tried this but doesn't seem to work. dat <- read.table("mydata.txt", comment.char = c("!","^") , na.st