Introduction to SNA with R (2012)

These are materials to the Sunbelt 2012 (Redondo Beach) edition of my workshop Introduction to Social Network Analysis with R.

Things to do before the workshop

  1. Install R on your computer by downloading from a CRAN server near you.
  2. (Optional) Install RStudio.
  3. Install additional R packages: igraph, network, intergraph. See below how.
  4. Download ZIPped data files.
  5. Downolad the scripts.

Install R

Unless you did not do that yet, or you do not plan to follow the examples during the workshop, please install R on your computer prior the workshop. This should be straightforward on Windows and Mac. On Linux for most distributions there are binary versions available on respective official repositories. Otherwise you should compile R from sources, which I'm sure you know how if you use Linux (see R Installation and Administration manual for more help).

R can be downloaded from any CRAN server.

Install RStudio

RStudio is a fairly new IDE for R. It is available for Windows, Mac, and Linux. I highly recommend it.

Depending on the quality of the beamer available during the workshop, I will be using RStudio for demonstrations.

Installation of RStudio is recommended but not necessary to be able to follow the examples during the workshop.

Install additional packages

We will be using additional R packages during the workshop. These are:

  • igraph
  • network
  • intergraph

You can install them from within R (with an Internet connection) with the following command

install.packages( c("igraph", "network", "intergraph") )

R will ask you to choose a CRAN mirror from where to download the files. Choose one near you.

Depending on your system and configuration, R may ask you whether to create an additional library tree where these packages should be installed. You will need to allow that.

Download data

I have prepared a couple of data files that we will use during the workshop. They are ZIPped and to be downloaded from here.


Scripts I will be using during the workshop:


Short slides I used for the introduction to each session:

Please let me know via email if you have troubles with getting the packages or downloading the data.