Since I need a normalized score, I call the degree () function on my sensory matrix I got a text file that I had loaded in the R from read.delim . It was perfectly fine with the sna package.
When I Run
K3_T2_ACAD And then
K3_T2_ACAD_indeg & lt; - Degree (K3_T2_ACAD, g = 1, nodes = null, gmode = "digraph", diag = false, tmaxdev = FALSE, cmode = "indegree") This works!
I tried to isolate the sna because I thought this was a problem. However, when I run the igraph degree () function, then it does not work:
K3_T2_ACAD_indeg2 returns
error in degree (K3_T2_ACAD, mode = " These ", loops = FALSE, normalized = TRUE): Not a graph object
The first column and line each have participant codes. Is it possible that igraph can not work with it while sna can?
sna package uses approximation metrics, igraph < / Code> does not. You need to create an igraph object to work See examples.
No comments:
Post a Comment