Create Multilines from Points, grouped by ID with sf package
问题 I have a collection of Points, with a LINEID and an ID_SEQ . The LINEID determines the unique Line-IDS, while the ID_SEQ determines the order of the points in a Line-ID. I want to transform Points to Lines, ordered by ID_SEQ and grouped by LINEID . With the package sp , I am able to achieve the desired results, but I want to do it with the sf package. What am I missing here? Here is some dummy data, the desired result illustrated with sp -functions and two attempts to do the same with sf ,