CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Analyzing Social Media Data in R

Afficher le cours

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.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de 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]
Modifier et exécuter le code