I have a simple two-column matrix that I want to convert to an sf object where each row specifies a point:
sf
> set.seed(123);m=matrix(runif(10)
As per the sf docs
m %>% as.data.frame %>% sf::st_as_sf(coords = c(1,2))