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 . <[email protected]> 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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help