Slide 47
Slide 47 text
Creating a node object of the users
nodes_users <- bdd %>%
mutate(label = from_user,
id = from_user) %>%
group_by(label, id) %>%
summarise(value = round(mean(user_followers_count,na.rm = TRUE)),
nbr_tweet = n()) %>%
na.omit()
glimpse(nodes_users)
#> Observations: 76
#> Variables: 4
#> $ label "_ColinFay", "2m1journaliste", "6Malix", "...
#> $ id "_ColinFay", "2m1journaliste", "6Malix", "...
#> $ value 3555, 3606, 3, 2220, 69, 2292, 575, 2520, ...
#> $ nbr_tweet 6, 1, 2, 1, 1, 1, 2, 1, 1, 18, 3, 29, 1, 1...
Colin FAY - https://twitter.com/_ColinFay — ThinkR - http://thinkr.fr — 47 / 62