[R-sna-devel] sna v1.0 (w/network update)
Carter T. Butts
buttsc at uci.edu
Sun Aug 21 01:30:54 PDT 2005
elijah wright wrote:
>
> :)
>
> hey carter.... "YOU RULE!"
>
Hey, I aim to please....
>
> thanks for all the work and for all the new goodies to play with.
>
You're quite welcome. Speaking of which, I should mention that the
long-awaited network package is now on CRAN (with help from Mark
Handcock, Dave Hunter, and a cast of thousands). Network allows for
more efficient storage of large, sparse graphs, as well as support for
edge, vertex, and network-level attributes. sna and network are
natively interoperable, in the sense that most sna routines (should)
automagically accept network objects as input. For instance:
library(sna) #Load sna
library(network) #Load network
data(emon) #Load the Drabek et al. EMON data
betweenness(emon,g=1:7) #Compute betweenness for all networks
$Cheyenne
[1] 8.1500000 1.4500000 15.0333333 0.1666667 1.0000000 0.0000000
[7] 13.4833333 28.1000000 13.7166667 0.1666667 1.3666667 0.3333333
[13] 5.0000000 3.0333333
$HurrFrederic
[1] 0.000000 0.000000 0.000000 17.899711 111.907648 15.017893
[7] 11.181746 0.000000 0.000000 0.000000 1.111111 0.000000
[13] 11.045310 18.020707 7.333838 16.624603 3.811111 2.285714
[19] 7.278283 12.648990 1.833333
$LakePomona
[1] 56.3226190 5.9928571 3.2916667 2.9678571 60.3880952 11.0107143
[7] 14.5797619 0.0000000 2.2523810 0.0000000 1.8845238 0.3666667
[13] 0.0000000 19.5940476 10.5428571 2.1500000 13.4059524 0.0000000
[19] 0.0000000 1.2500000
$MtSi
[1] 14.1666667 0.0000000 1.7333333 0.0000000 7.5666667 0.4000000
[7] 0.0000000 0.7333333 0.0000000 0.0000000 0.0000000 1.4000000
[13] 0.0000000
$MtStHelens
[1] 13.388961 39.707251 0.000000 0.000000 15.207143 0.000000 0.000000
[8] 0.000000 15.299675 0.000000 0.000000 77.007251 0.000000 1.798485
[15] 42.775433 88.788636 1.233333 0.000000 0.000000 0.000000 33.700108
[22] 13.093723 0.000000 0.000000 0.000000 1.000000 0.000000
$Texas
[1] 0.4588235 1.3088235 124.9598568 8.5505103 25.5899540
28.0735048
[7] 7.2617593 31.1875641 51.2246303 0.0000000 19.5664566
20.8364882
[13] 7.2510599 52.2216387 11.3253358 9.3845041 9.6599853 2.1916667
[19] 16.6089799 8.1683622 7.0920024 15.0127684 8.6315018 0.0000000
[25] 0.4338235
$Wichita
[1] 44.8346320 2.6952381 0.0000000 11.1480519 6.6961039 17.6504329
[7] 1.1142857 0.9142857 6.9231602 22.8831169 1.7580087 1.8861472
[13] 0.0000000 1.4761905 20.6361472 0.3333333 14.4880952 0.0000000
[19] 6.5627706 0.0000000
Fun stuff. Anyway, several new packages will be released in the coming
months, which will build on network. Those using sna by itself won't be
impacted, but some may want to take advantage of network's new
functionality.
It seems that things have come a long way from the first little
collection of R functions I put together (as a favor!) in late 1999. At
that point, I don't suppose that I would have guessed that it would take
five years to get to version 1.0. Then again, I wasn't at all sure that
there was going to _be_ a version 1.0 at that point! :-) Thanks to
those on this list (and elsewhere) who have sent in suggestions, bug
reports, and code snippets over the past few years...your prodding has
been an essential ingredient in making sna a useful tool for network
researchers.
Let me know as you find the new bugs, (;-))
-Carter
More information about the R-sna-devel
mailing list