Skip to content
Prev 26749 / 29559 Next

st_distance to replace dist in pipes - help needed

Maybe like this?

dist.utm <- matrix(c(st_distance(pts.utm.sf %>%
filter(Attribute=="start")),
                     st_distance(pts.utm.sf %>% filter(Attribute=="end"))),
                     nrow=20,ncol=20)
all.equal(dist.utm, dist.mat)

On Thu, Aug 16, 2018 at 4:53 PM Bannar-Martin, Katherine <
Katherine.Bannar-Martin at dfo-mpo.gc.ca> wrote: