I kept getting on this error: Error in as.igraph.vs(graph, vids) : Invalid vertex name(s); while trying to induced subgraph. I did it on different vertices attribute, and managed to get the intended induced subgraph. Yet, I'm unable to get the subgraph on this particular vertices attribute.
Here is the code:
b<-induced_subgraph(snet,V(snet)$Daerah=="Sabak Bernam")
The column Daerah contained many other value, all of the value come back as error.