R package for network analysis