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.strings
= "null", sep = "\t");

Please advice.

-- 
Gundala Viswanath

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to