R 使用不同于分隔符的标题分隔符读入数据 statefiscal

R 使用不同于分隔符的标题分隔符读入数据 statefiscal,r,R,像这样: StateNonfiscal <- read.table("State_Nonfiscal_1314.txt", header=TRUE, sep = ",", stringsAsFactors = FALSE) statenviscal我在该网站上打开的所有文件都使用tab分隔符。使用sep=“\t” StateNonfiscal <- read.table("State_Nonfiscal_1314.txt", header=TRUE, sep="\t", str

像这样:

StateNonfiscal <- read.table("State_Nonfiscal_1314.txt", header=TRUE, 
sep = ",", stringsAsFactors = FALSE)

statenviscal我在该网站上打开的所有文件都使用
tab
分隔符。使用
sep=“\t”
StateNonfiscal <- read.table("State_Nonfiscal_1314.txt", header=TRUE, 
sep="\t", stringsAsFactors = FALSE)