When you run sf::st_distance, the resulting distance matrix has units associated with in (most commonly meters). The sfnetworks equivalent st_network_cost does not have this. If the given weights have units, it might make sense that the resulting cost matrix has the same units attached to it.
When you run
sf::st_distance
, the resulting distance matrix has units associated with in (most commonly meters). Thesfnetworks
equivalentst_network_cost
does not have this. If the given weights have units, it might make sense that the resulting cost matrix has the same units attached to it.