[R-sig-Geo] sample points - sp package

Ana rrasterr at gmail.com
Fri Feb 10 18:13:58 CET 2012


When I make a sample in sp, for example a random samping of 5 points in
dataset1:

sample.dataset1=spsample(dataset1, n = 5, "random")

I have a sp object for the selected sampling...

My question is : How can I extract from dataset2 the points & data for the
coordinates(sample.dataset1) ?

The dataset2 would be an object with the same area and coordinate system,
but I would like to extract for the coordinates of sample.dataset1 the data
in each point for dataset2.

I didn't found a way to do this in the sp package docs, but I might have
missed it. 

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/sample-points-sp-package-tp7273420p7273420.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list