Re: [R] Network Construction in R

2007-09-24 Thread Robert Gentleman
there are several packages that can be used: the graph, RBGL and Rgraphviz packages, provide data structures, algorithms, and layout/plotting tools for graphs/networks. There are quite a few more specialized packages at Bioconductor (typically more related to biological problems). There, you ca

Re: [R] Network Construction in R

2007-09-24 Thread Gabor Csardi
Johannes, with the igraph package, this would be something like library(igraph) g <- graph.data.frame( data.frame(from=data$acra, to=data$acrb, weight=data$expab)) Gabor On Sun, Sep 23, 2007 at 11:39:40AM -0400, Johannes Urpelainen wrote: > Hi, > > I am trying to constr

Re: [R] Network Construction in R

2007-09-23 Thread elw
> I am trying to construct a social network from a data frame with rows > >acra numa acrb numb yearexpab eaboimpab iabo > 10 USA2 CAN 20 1957 4017.000 0.0 3187.000 0.0 > 91 USA2 CUB 40 1957 628.000 0.0 526.000 0.0 > 144 USA2 HAI 41 1957

[R] Network Construction in R

2007-09-23 Thread Johannes Urpelainen
Hi, I am trying to construct a social network from a data frame with rows acra numa acrb numb yearexpab eaboimpab iabo 10 USA2 CAN 20 1957 4017.000 0.0 3187.000 0.0 91 USA2 CUB 40 1957 628.000 0.0 526.000 0.0 144 USA2 HAI 41 1957 25.00