I’m trying to use the
get_timeline() function for multiple users to build a network map. Previously, with an older version of rtweet (I think it must have been 1.0.0), after retrieving a few hundred tweets from each user’s timeline I was able to use the columns
quoted_screen_name to create an edgelist that I could convert to a network graph using Igraph. It’s possible I’m doing something wrong, but now, with rtweet 1.0.2 the returned data structure appears to be different, and the code I was using before does not work.
When I use the function
network_data() on a test set of retrieved tweets using the
get_timeline() function I get the following error:
! Must subset rows with a valid subscript vector.
Logical subscripts must match the size of the indexed input.
Input has size 100 but subscript
!k has size 200.
rlang::last_error() to see where the error occurred.
Any advise on what I may be doing wrong, or what I can do to get column data on
quoted_screen_name in order to build a network graph, would be much appreciated!