Get startedGet started for free

Compute the in-degree scores

In a retweet network, the in-degree of a user indicates the number of times the user's posts are retweeted.

Users with high in-degrees are influential as their tweets are retweeted many times.

In this exercise, you will identify users who can be used to initiate branding messages of a travel portal.

The retweet network on #travel has been pre-loaded as nw_rtweet.

The library igraph has been pre-loaded for this exercise.

This exercise is part of the course

Analyzing Social Media Data in R

View Course

Exercise instructions

  • Compute in-degree scores from the retweet network.
  • Sort the in-degree scores in decreasing order.
  • View users with the top 10 in-degree scores.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Compute the in-degree scores from the retweet network
in_degree <- ___(___, mode = c("___"))

# Sort the in-degree scores in decreasing order
in_degree_sort <- ___(___, decreasing = ___)

# View users with the top 10 in-degree scores
___[1:10]
Edit and Run Code