cran / riverconn

:exclamation: This is a read-only mirror of the CRAN R package repository. riverconn — Fragmentation and Connectivity Indices for Riverscapes. Homepage: https://github.com/damianobaldan/riverconn Report bugs for this package: https://github.com/damianobaldan/riverconn/issues
Other
1 stars 0 forks source link

Some vertex names in edge list are not listed in vertex data frame #1

Open jbucholz opened 1 year ago

jbucholz commented 1 year ago

I assume this is potentially an error with my input....but I'm wondering if there is some filtering that's missing for my hydroRivers file. The only element of the tutorial code I have changed is that my hydroRivers file does not have "UP_CELLS" but instead has "DIST_UP_KM". I'm not sure these are entirely interchangeable. I am successfully able to make it through the entire tutorial until I try to make the igraph object....then I get the following error.

river_graph <- create_network(network_links, river_net_simplified, outlet) Error in igraph::graph_from_data_frame(d = full_net_links_df, v = vertices, : Some vertex names in edge list are not listed in vertex data frame In addition: Warning message: In igraph::graph_from_data_frame(d = full_net_links_df, v = vertices, : In d'NA' elements were replaced with string "NA"

I'm wondering if this is due in part to the fact that "joints" in network_links are not given a barrier id...but when I filter those out I still get an error. Any help appreciated, as I would like to include this package in my next publication

gaborcsardi commented 1 year ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!