【发布时间】:2014-12-21 09:24:09
【问题描述】:
examdata <- RCurl::getURL("https://raw.githubusercontent.com/jrwolf/IT497/master/spendingdata.txt")
examdata2 <- read.table(textConnection(examdata), sep = ",", header = T)
扫描错误(文件、内容、nmax、sep、dec、quote、skip、nlines、 na.strings, : 第 1 行没有 2 个元素
【问题讨论】:
-
试试
examdata2 <- read.table(textConnection(examdata), sep = ",", header = TRUE, skip=31, stringsAsFactors=FALSE) -
为什么要删除网址?问题的答案很重要
标签: r