Thanks for your time,

I have several shape-files to processing and I did a list. In one step I
need to eliminate all value -99999 and obtain a new data.frame

This is the part of loop with problem


 #library(rgdal)
 soil_pollution <- readOGR(".", paste("soil_pollution",
file.list[[i]],sep=""))
 summary(soil_pollution)

# HERE I NEED TO CHANGE THE ORIGINAL NAME OF 2° COLUMN IN VALUE
names("soil_pollution", file.list[[i]], ".", sep="")[2] = "value"

 # select all points == -9999
 soil_pollution <- soil_pollution[paste("soil_pollution$value",
file.list[[i]], ".", sep="") != -99999,]
 summary(soil_pollution)

when I arrive in this point "names("soil_pollution", file.list[[i]], ".",
sep="")[2] = "value"" , there is always an error. I have difficult to write
list loop and tried severa combination and I had read the manual but I am
not an expertise and some time is no easy. Sorry again

Gianni

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to