ডিবিএফ ফাইলটি সংশোধন Rকরতে foreignপ্যাকেজটি ব্যবহার করুন:
library(foreign)
dbfdata <- read.dbf("file.dbf", as.is = TRUE)
## add new attribute data (just the numbers 1 to the number of objects)
dbfdata$new.att <- 1:nrow(dbfdata)
## overwrite the file with this new copy
write.dbf(dbfdata, "file.dbf")
অথবা rgdalপ্যাকেজটির সাথে জ্যামিতি এবং অ্যাট্রিবিউট ডেটা পড়ুন (যাতে আপনি সম্পর্কগুলিও সংশোধন করতে এবং একটি সম্পূর্ণ নতুন শেফফাইল তৈরি করতে পারেন):
library(rgdal)
## read "/path/to/files/filename.shp"
shp <- readOGR("/path/to/files/", "filename")
## add new attribute data (just the numbers 1 to the number of objects)
shp$new.att <- 1:nrow(shp)
## write out to a new shapefile
writeOGR(shp, "/path/to/files/", "filename2")