[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] graph.data.frame
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] graph.data.frame |
Date: |
Wed, 10 Nov 2010 18:20:13 +0100 |
Hi Simone,
no, this should not be a problem, e.g. the following code works fine:
v <- data.frame(name=letters[1:5])
e <- data.frame(from=letters[1:3], to=letters[3:1])
graph.data.frame(e, vertices=v, directed=TRUE)
Best,
Gabor
On Tue, Nov 9, 2010 at 8:32 PM, Simone Gabbriellini
<address@hidden> wrote:
> Hello List,
>
> when I try to build a graph from a data.frame, I have this warning:
>
>> g<-graph.data.frame(data, directed=TRUE, vertices=data2)
> Warning messages:
> 1: In if (class(newval) == "factor") { :
> la condizione la lunghezza > 1 e solo il promo elemento verrà utilizzato
> 2: In if (class(newval) == "factor") { :
> la condizione la lunghezza > 1 e solo il promo elemento verrà utilizzato
>
> I would like to understand better what the warning is about (since the
> italian translation is meaningless). What I know for sure is that data2
> contains more nodes than data, because there are a lot of isolates nodes in
> this network.
>
> is this a possible explanation of the warning?
>
> thanks,
> Simone Gabbriellini
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> UNIL DGM