我一直在試圖用shapefile連接數據框並繪製結果。我試圖按照@ jlhoward對this question的回答中提出的方法使用。我有national dataset of vaccination rates by post code。我試圖將它與澳大利亞統計局郵政編碼ESRI shapefile合併,並根據郵政編碼按照其他問題繪製結果。 這是我當前的嘗試坐: library(rgdal)
我想在循環中使用writeOGR將shapefile保存到文件夾。我無法弄清楚名稱是如何用來保存實際文件的。 說你已經有了這個代碼: require(sp)
require(rgdal)
for (i in listafiles){
ffile <-read.csv(i) #reads file
###do some stuff on the file and obtain a poly