Hi, I wrote a simple script to retrieve an n number of followers for a given user in Twitter. I used a sample of n=10 to test my script and worked perfectly but once I started to changes n I started to get the following error:
Error in list_to_dataframe(res, attr(.data, "split_labels")) : Results do not have equal lengths I have no clue why works fine with n=10 but for higher values fall over. Any Suggestions? Below is my script. Thanks, Alberto library(plyr) library(twitteR) getuser <- getUser('altons') count <- 50 UserFollowers <-userFollowers(getuser, n=count, session = getCurlHandle()) dffollow <- ldply(userFollowers(getuser, n=count, session = getCurlHandle()), function(x) c(screennam...@screenname ,nam...@name ,statusesCount =...@statusescount ,followerscoun...@followerscount ,friendscoun...@friendscount ,twitterbirt...@created ,descriptio...@description ,locatio...@location) ) -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-package-twitteR-and-converting-S4-obj-to-data-frame-tp3177948p3177948.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.