Search Results
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 |
To join the attributes from one spatial data layer to another using their common location
2
votes
1
answer
657
views
Spatial joining two polygon objects in R?
I want to combine voter precinct data with school zone data. Precinct boundaries do not line up neatly with school zone boundaries in all cases.
Code look something like this:
library(rgdal)
library(t …
1
vote
1
answer
832
views
Match centroids from one dataset with polygons of another
I want to make a data frame showing which voting precincts are in each school zone. To do this, I want to see which precincts' center points are in which school zones.
library(sf)
precincts <- st_rea …
1
vote
1
answer
181
views
Overlapping score for each feature in the merged layer after spatial joins
I've clicked on the Join attributes by location button and can join two layers. But in the merged layer, how do I find out percentage of overlap/intersect calculated for each feature?
For example, in …
0
votes
0
answers
42
views
How to make `st_join` stricter?
I used st_join() to combine t1 and t2.
library(sf)
j <- st_join(
x = t1,
y = t2
)
t1 represents voting precincts boundaries and t2, school zone boundaries. In some cases, the boundaries of t1 fit …