[R] read.delim2 regarding "#"
Sundar Dorai-Raj
sundar.dorai-raj at pdf.com
Tue May 31 18:13:17 CEST 2005
Hai Lin wrote:
> Hello R experts:
>
> When I tried to read my data into R, it does not take
> # sign
>
> A subset of Exp.txt is:
> Experiment name assay id Varname
> (A1)DBA TPA 6h/DBA Acetone rep1(A1) #3 4090 A90C1
> (A2)DBA TPA 6h/DBA Acetone rep2(A2) #3 4091 A91C1
> The command is:
> Exp <- read.delim2("Exp.txt",check.names=F,as.is=T)
>
> It is excuted but gave me all the NAs. Can you all
> drop me a hint?
>
> Thanks in advance.
>
> Kevin
Please (re)read ?read.delim2. It is just a wrapper for read.table. The
latter has an argument for comment.char. Maybe try:
Exp <- read.delim2("Exp.txt", check.names = FALSE,
as.is = TRUE, comment.char = "")
--sundar
More information about the R-help
mailing list