Skip to content
Prev 25416 / 29559 Next

Subset a SpLineDF

By assigning slots directly, you always take a serious risk that you
create objects that are considered invalid in a next step, as is the
case in your example.

My guess is that when you subset @data, you should also replace the
@lines slot with the corresponding subset of @lines (which is a list).

The more straightforward (and safe) way is to subset the whole object as
if it were a data.frame:

TRONCON_TOPO_DSAV_coor[! TRONCON_TOPO_DSAV_coord$doublon, ]

(note the absence of @)
On 22/02/17 11:49, Tristan Bourgeois wrote: