いくつかのことを理解していません:
con <- url("http://biogeo.ucdavis.edu/data/gadm2/R/CHE_adm1.RData")
print(load(con))
出力は
[1] "gadm"
コードは接続を閉じて続行します
close(con)
それから私は実行します
language <- c("german", "german", "german","german",
"german","german","french", "french",
"german","german","french", "french",
"german", "french","german","german",
"german","german","german", "german",
"german","italian","german","french",
"french","german","german")
正直なところ、その人がこのマトリックスをどのように思いついたのかわかりませんが、エラーが発生します
Error in `[[<-.data.frame`(`*tmp*`, name, value = c(2L, 2L, 2L, 2L, 2L, :
replacement has 27 rows, data has 26
ガイドしてください