<my code>中的錯誤:類型‘閉包’的對象不可設(shè)置我終于想出了我的刮痕..它似乎工作得很好,然后當(dāng)我再次運(yùn)行它時,突然收到了以下錯誤消息:Error in url[i] = paste("http://en.wikipedia.org/wiki/", gsub(" ", "_", :
object of type 'closure' is not subsettable我不知道為什么,因?yàn)槲覜]有改變我的代碼。請指點(diǎn)。library(XML)library(plyr)names <- c("George Clooney", "Kevin Costner", "George Bush", "Amar Shanghavi")for(i in 1:length(names)) {
url[i] = paste('http://en.wikipedia.org/wiki/', gsub(" ","_", names[i]) , sep="")
# some parsing code}
3 回答

當(dāng)年話下
TA貢獻(xiàn)1890條經(jīng)驗(yàn) 獲得超9個贊
url
url
url[i]
url

qq_笑_17
TA貢獻(xiàn)1818條經(jīng)驗(yàn) 獲得超7個贊
myReactives <- eventReactive(input$execute, { ... # Some other long running function here removeUI(selector = "#placeholder2")})
- 3 回答
- 0 關(guān)注
- 874 瀏覽
添加回答
舉報
0/150
提交
取消