-
-
Notifications
You must be signed in to change notification settings - Fork 206
NA check too strickt for data frames #1905
Copy link
Copy link
Closed
Labels
Description
Should only error for NAs in from/to
devtools::load_all("~/git/R_packages/rigraph")
#> ℹ Loading igraph
library(igraph)
e <- data.frame(from = c(1, 2, 3, 4), to = c(2, 3, 4, 5), label = c("a", "b", NA, "d"))
graph_from_data_frame(e)
#> Error in `graph_from_data_frame()`:
#> ! Cannot create a graph object because the edge data frame contains NAs.Created on 2025-06-30 with reprex v2.1.1
Reactions are currently unavailable