Convert sf LINESTRING objects to POLYGON objects representing all fundamental cycles within the LINESTRING objects.
sf
LINESTRING
POLYGON
Useful links