<my code>中的錯誤:類型‘閉包’的對象不可設置我終于想出了我的刮痕..它似乎工作得很好,然后當我再次運行它時,突然收到了以下錯誤消息:Error in url[i] = paste("http://en.wikipedia.org/wiki/", gsub(" ", "_", :
object of type 'closure' is not subsettable我不知道為什么,因為我沒有改變我的代碼。請指點。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 回答

當年話下
TA貢獻1890條經驗 獲得超9個贊
url
url
url[i]
url

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