luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Add as sfnetwork methods #56

Closed agila5 closed 4 years ago

agila5 commented 4 years ago

Hi! I added as_sfnetwork methods for psp and linnet objects for #41. I had to include spatstat to Suggests since I had to convert linnet objects into psp format.

I also checked rmangal format but I'm not so sure how to include it. The code is trivial since we can transform mgNetwork objects into tidygraph format but I'm not 100% sure that it's the right conversion for creating a spatial network.