Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 92820

Statistical computing language and software environment.

6 votes
1 answer
2k views

Efficient clipping of polygons by other polygons using R

Is there a way I can complete the task using R in a reasonable time frame? …
Chris's user avatar
  • 264
5 votes
2 answers
462 views

Nearest point to 30 million points using R

I have two point datasets. One with 30 million records and the other with 1.5 million. For each of the 30 million points, I would like to calculate the nearest point(s) from the 1.5 million dataset to …
Chris's user avatar
  • 264
2 votes
0 answers
220 views

Exported GeoPackage from R not drawing in ArcMap

I am trying to export multiple layers of point data from R as a single GeoPackage. … below), however when I try and load the resulting GeoPackage into ArcMap (10.6) I get the following pop-up: Followed by this error: I've not had this issue before when exporting GeoPackages from R
Chris's user avatar
  • 264
1 vote
1 answer
122 views

Generate different number of points for multiple features in shapefile using R

I need to do this in R and have some code that does the job. However, it is not very quick and takes almost a day to complete. I am looking for any help in speeding up the process. …
Chris's user avatar
  • 264
1 vote
Accepted

Efficient clipping of polygons by other polygons using R

So I have a solution that uses st_intersects to identify the polygons that intersect the boundary. I then run st_intersection on these polygons only before joining that output with the polygons that d …
Chris's user avatar
  • 264
1 vote
2 answers
919 views

Buffer and Dissolve/Union 2 million points

On a much smaller scale (100 points) using R I can do this: library(sf) bbox <- st_sfc(st_polygon(list(rbind(c(0,0),c(90,0),c(90,90),c(0,90),c(0,0)))), crs = st_crs(27700)) points <- st_sample(bbox,100 …
Chris's user avatar
  • 264
0 votes

Nearest point to 30 million points using R

If your DT2 dataset has multiple points with the same XY coordinates and you wish all of these to be included in your output (if they are closest to a particular point in DT1) then running this after …
Chris's user avatar
  • 264
0 votes
2 answers
3k views

Using R to convert British National Grid to/from WGS84 without creating spatial object

I know using R you can do this in a spatial operation (such as in my example below using sf). …
Chris's user avatar
  • 264