Displaying 1 result from an estimated 1 matches for "ngafulldf".
2009 Aug 25
0
Fwd: Overlay on raster loses points when merging with data frame
...fclassoverlay<-overlay(CRS11, classifiedmodrobin)
overlaydf<-as.data.frame(tifclassoverlay)
tifol<-remove.na.rows(overlaydf)
tifol is 854 rows long.   tifol has predicted data, while the
classifiedmodrobin matrix has observed data.  When I try to merge the two, I
get a length of 827:
 ngafulldf<-as.data.frame(classifiedmodrobin)
 NGAfiledata<-merge(tifol, ngafulldf,all=FALSE, by=c("LON", "LAT"))
NGAfiledata<-unique(NGAfiledata)
NGAfiledata<-remove.na.rows(NGAfiledata)
The length should obviously still be 854.  What happened to the missing
rows?  How can...