Spatial lines in
sf format for smoothing. There are examples of lines
forming a closed loop and multipart lines.
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.