how to make a data frame into a simple features data frame?
问题 I've got a table with place references and x and y coordinates in a given coordinate reference system. I want to turn that into a simple features data frame. How can I create that? I thought it might be: data_frame(place = "London", lat = 51.5074, lon = 0.1278, epsg = 4326) %>% group_by(place) %>% mutate(feature = st_point(c(lon, lat))) But that leads to an error: Error in mutate_impl(.data, dots) : Column feature must be length 1 (the group size), not 2 This is probably pretty simple to do,