Skip to content
Prev 5120 / 29559 Next

difficult to subtract two column of my shapefile

indeed, on the example file, this works fine.

library(foreign)
data <- read.dbf('theme1.dbf')
data$AminB <- data$A - data$B
file.remove('theme1.dbf')
write.dbf(data, 'theme1.dbf')

if the dbf is too large you could you use a database to import the
dbf, add the column, export again. Perhaps sqlite (in R).

(((((( in your first post you said you have ArcMap: open attribute
table, options/add field, highlight field, right click/  field
calculator, a - b  ))))))


On Tue, Feb 24, 2009 at 10:37 PM, Alexander Brenning
<brenning at uwaterloo.ca> wrote: