-
Notifications
You must be signed in to change notification settings - Fork 300
Closed
Description
If some of the attributes of the "from" polygons in st_interpolate_aw
are NA
it seems there is no way to avoid them being propagated to the st_interpolate_aw
output. Does it make sense to add an na.rm = TRUE
argument?
nc = st_read(system.file("shape/nc.shp", package="sf"))
g = st_make_grid(nc, n = c(20,10))
a2 = st_interpolate_aw(nc["BIR74"], g, extensive = TRUE)
nc[sample(seq_len(nrow(nc)), 5), "BIR74"] <- NA
a3 = st_interpolate_aw(nc["BIR74"], g, extensive = TRUE)
plot(a2["BIR74"])
plot(nc["BIR74"])
plot(a3["BIR74"])
Metadata
Metadata
Assignees
Labels
No labels