我想使用以下方法读取数据文件:
ds <- read.table(file="/data/ken/tmp/tt", header=F,
sep="\t", quote="\"", dec=".",
fill=T, comment.char="",
stringsAsFactors=F,
colClass=rep("character", 6))
该文件tt
如下所示,带有\t
分隔符
20130129074502\thttp://xxx.com.cn/notebook/asus/526600_detail.html\t\t5025\t526600\t255dkmi
但它不起作用:
caution:
In read.table(file = fcon, header = F, sep = "\t", quote = "\"", :
cols = 1 != length(data) = 6