|
From: | Luca Rossi |
Subject: | Re: [igraph] ordering the vertex sequence |
Date: | Fri, 9 May 2014 16:02:10 +0000 |
HI,
I’m sorry. I’m trying to write here my code:
MLau <- graph.data.frame(aucs.mlnet.v9,directed=FALSE)
> MLau
IGRAPH UN-- 61 1240 --
+ attr: name (v/c), Label (e/c)
> V(MLau)
Vertex sequence:
[1] "U102" "U106" "U107" "U109" "U10" "U110" "U112" "U113" "U118" "U123" "U124" "U126" "U130" "U134" "U138" "U139"
[17] "U13" "U140" "U141" “U142” …
nei <- data.frame(user=MLcoauthor$V1,coauthor=MLcoauthor$V3,facebook=MLfacebook$V3,leisure=MLleisure$V3,lunch=MLlunch$V3,work=MLwork$V3,stringsAsFactors=FALSE)
> head(nei)
user coauthor facebook leisure lunch work
1 U102 0 0 0 2 0
2 U139 0 0 0 1 11
3 U33 0 0 0 6 9
4 U106 1 7 2 7 4
V(MLau)[nei$user]$nefacebook <- nei$facebook
Error in nei$user : object of type 'closure' is not subsettable
thanks for helping!
Luca
On 09 May 2014, at 17:10, Gábor Csárdi <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |