[R-sig-Geo] Best way to get values of a raster that are not masked?
Mark Connolly
wmconnol at ncsu.edu
Tue Jun 22 16:25:50 CEST 2010
Not sure exactly what you are starting with but something like
# ?read.csv and look for information on as.is and na.strings
# depending on how clean the data are, you may want to bring them in
# as is and use as.numeric etc on the specific attributes
mixed = read.csv("filename.csv")
good = subset(mixed, testattrib == 1)[,c("x","y","dataattrib")]
If you already have some coordinates and want to join data frames
together ?base::merge (there is also a raster::merge)
Mark
More information about the R-sig-Geo
mailing list