|
From: | Gábor Csárdi |
Subject: | Re: [igraph] ordering the vertex sequence |
Date: | Fri, 9 May 2014 11:10:26 -0400 |
Hi Gabor,
thanks a lot.
It gives me an error “ object of type 'closure' is not subsettable” that I don’t really understand.
any idea?
thanks!
Luca Rossi
On 09 May 2014, at 16:44, Gábor Csárdi <address@hidden> wrote:
V(network)[dataframe$name]$attribute <- dataframe$attribute
Untested, so please check the result.
G._______________________________________________
On Fri, May 9, 2014 at 10:34 AM, Luca Rossi <address@hidden> wrote:
Hi,
I’m facing a problem that I guess should be quite simple but I can’t find a good way to solve it.
I need to add to an igraph network vertex attributes that I have on a dataframe.
basically what I need to do is to add to V(network)[name==“X”] an $attribute value taken from a data frame when name is equal to dataframe$name.
The easiest way to do that I guess it would be to sort the vertex sequence according to the name, is that possible?
thanks a lot
Luca
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |