Statistical Analysis of Network Data with R