Displaying 1 result from an estimated 1 matches for "rs13".
Did you mean:
r13
2011 Aug 01
1
Write.table Question
Hi,
I'm trying to create an abbreviated data file from a larger version. I can
use the subset command to create a value for this data:
dat <-subset(raw.data, select=c(SNP, Pvalue))
> head (dat)
SNP Pvalue
1 rs11 0.6516
2 rs12 0.3311
3 rs13 0.5615
but when I try to write.table using:
write.table (dat, file = "/path/to/my/data.txt", sep = " ", col.names=NA)
I end up with a file that looks like this:
"" "SNP" "Pvalue"
"1" "rs11" 0.6516
"2" "rs12&quo...