<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}
当年话下
qq_笑_17