This repository contains R code for performing social network analysis using the igraph
package. Social network analysis is a method for analyzing the structure of social networks, including relationships between individuals or entities.
Before running the code, make sure you have the following:
- R programming language installed on your system.
- Required R packages: igraph.
-
Clone the Repository:
git clone https://github.com/ajaynair710/social-network-analysis.git
-
Run the R Code:
- Open RStudio.
- Set the working directory to the location where you cloned the repository.
- Run the R script
social_network_analysis.R
. This script contains code for network creation, visualization, and analysis using igraph.
-
View Results:
After running the R script, you'll generate various plots and analyses related to the social network data.
social_network_analysis.R
: R script containing code for social network analysis.networkdata.csv
: Sample CSV file containing network data.- Other supporting files as required.
- The R script
social_network_analysis.R
demonstrates various aspects of social network analysis, including network creation, visualization, and analysis measures. - It utilizes the
igraph
package in R for network-related functionalities.