I used the code below to find points in a North American Regional Reanalysis data set that were within the 48 contiguous states.
# The 48 contiguous states m <- map("state",fill=TRUE,plot=FALSE) indx1 <- in.polygon(m,list(x=my_lon,y=my_lat)) st <- map.where("state",my_lon,my_lat) Unfortunately, this leaves out points that are over water. For some of the counties around Seattle Washington, I missed some of the points. Is there a way to find points that are just a little bit outside the border of the polygon? Hernan L. Medina This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo