Get startedGet started for free

Calculate out-degree scores

In a retweet network, the out-degree of a user indicates the number of times the user retweets posts.

Users with high out-degree scores are key players who can be used as a medium to retweet promotional posts.

Can you identify users who can be used as a medium to retweet promotional posts for 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

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

Hands-on interactive exercise

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

# Calculate out-degree scores from the retweet network
out_degree <- ___(___, mode = c("___"))

# Sort the out-degree scores in decreasing order
out_degree_sort <- sort(___, decreasing = ___)

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