This is my first post, so please excuse any etiquette rules that I may accidentally break.
I am new to R and I am working with a very large data set that has numerous stand-alone dyads in it and I would like to remove them, so that I can focus on a small number of communities that have 3 or more nodes. Does anyone know how to do this please?
Thanks for responding. Perhaps I should mentiont that although I am new to R, I have done a few introductory courses but sometimes have a few problems with my coding. I also realise, that maybe my question was a bit to broad!
For context, I am using igraph and ddplot2.
I think I need to use an if/else statement, but I am not sure how to code it.
I know I need to add an if/else statement in here somewhere, but not sure how. What I am trying to do is to remove all outlier nodes that only have an edge between itself and another. So essentially pairs of 2 or dyads. Any node that has 2 or more connections, ie a triad, I want to keep.
I have tried identifying communities, but as I said, I have a really large network that I am analysing and R has identified over 500 communities - most of them are communities of 2 and I want to remove them.