r - Creating a for loop to save each data in a separate file -
i trying take list of users dataframe, , create for
loop followers. want followers user 1,2,3,4..., don't want them saved in same file. here code, missing?
## vector of users users <- unique(dat$screen_name) for(i in seq_along(users)){ print(users[i]) d <- get_followers(users[i], n= "all", page = "-1", parse = true, token = null) }
this overwriting, deletes first user followers, , write on 2nd , on.
Comments
Post a Comment