Session Ready
Exercise

How many weak ties are there?

Recall that a weak tie as a tie with a weight equal to 1 (the minimum weight).

In this exercise, we are going to use the dplyr function group_by() to group ties by their weights and the summarize() function to count them. Hence, we are going to discover how many weak ties there are in the network.

The ties data frame is loaded in the workspace.

Instructions
100 XP
  • Use count() to count the number of ties with each weight. This will create a new column named n.
  • Use mutate() to add a column named percentage. This should be one hundred times n, divided by the number of rows in ties.