Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
210 views
in Technique[技术] by (71.8m points)

Best approach to take a random sample of geo spatial data in R

I am trying to take a relatively small sample, maybe 5-10 samples by city of a country. As you can see I am working with Pakistan, and I have a very large data set, maybe 50,000 samples of geo spatial data. I want 5-10 random samples from each city. The sample data set below is only 2 samples. Any help would be greatly appreciated.

sampledataset <- matrix(c("ChIJ-11JNWkFGTkRY-jDNnTGwnQ","HEALTH LINK PHARMACY","3a Sultan Ahmed Road", "c(1005348.08594025, 3500185.38218226)", "ChIJ-aPvOavJIDkRMgJGa4ub284", "Baloch Pharmacy", "Thowa Dhurnal Road, Dhurnal", "c(790797.725041541, 3634310.02159564)"), ncol = 4, byrow = TRUE)

colnames(sampledataset) <- (c("place_id","name", "vicinity", "geometry")) 
question from:https://stackoverflow.com/questions/65846648/best-approach-to-take-a-random-sample-of-geo-spatial-data-in-r

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...