I am manipulating my data with the sf package then turning it into a SpatialLinesDataFrame (with as(foo, "Spatial)). I would like to add functionality to directly feed the object to the line2network function rather than read from disk.
Does this sound like a good idea? I would add an sp argument, set the layer argument with an NA default, and read from the layer argument if is.na(sp).
I am manipulating my data with the
sf
package then turning it into aSpatialLinesDataFrame
(withas(foo, "Spatial)
). I would like to add functionality to directly feed the object to theline2network
function rather than read from disk.Does this sound like a good idea? I would add an
sp
argument, set thelayer
argument with anNA
default, and read from thelayer
argument ifis.na(sp)
.