R语言中如何读取带有#注释的数据
001、测试数据
root@PC1:/home/test3# ls test.gff root@PC1:/home/test3# cat test.gff ## 1 aa bb xx yy ## 2 jj kk uu ss ee 3 mm jj aa ww ff 4 ee ww qq kk ee 5 xx ff ee jj

dir() dat1 <- read.table("test.gff", header = F) dat1 dat2 <- read.table("test.gff", header = F,comment.char = "$") ## 默认注释符是#,指定注释符号为$ dat2 dat3 <- read.table("test.gff", header = F,comment.char = "/") dat3


浙公网安备 33010602011771号