Spatial lines in
sf format for smoothing in three dimensions. There are
examples of open and closed loops
sf object with 9 features and 3 attribute:
type: character; the geometry, i.e. "polygon" or "line".
closed: logical; whether the line forms a closed loop or not.
multipart: logical; whether the feature is single or multipart.