igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] nodelist file format into a graph


From: RK LATA
Subject: Re: [igraph] nodelist file format into a graph
Date: Wed, 2 Mar 2016 07:48:06 -0800

m <- as.matrix(read.csv("f.csv", header=TRUE,  row.names =1))
gi=graph.incidence(m)

On Wed, Mar 2, 2016 at 2:16 AM, Ragia . <address@hidden> wrote:
greetings,
kindly, 
how can I convert the following format (if it is in a f.csv) ..into a graph object (R based)

nid     nom1    nom2    nom3
1       87      90      110
2       11      55      98
3       20      29      37
4       33      94      103
5       52      56      61
6       29      31      43
7       23      94      106
8       36      55      111
9       3       23      29

...

 where nid  is the person’s ID and norm1 , norm 2...  are the nominations to other IDs


thanks in advance
Ragia 
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]