Hi, I got a problem. Using loop, I'm trying to feed data frames, returned from the function, into the list but not all data frames are getting captured.
I have vector with some string values which I want to pass to the function. *groups* <- c('cocacola', 'youtube','facebook) for(i in 1:length(groups)){ g <- list() g[[i]] <- searchGroups_mod(*groups[i]*, token=fb_oauth, 10) } The result list stores data frame only for the last string in the 'groups' vector. Why the List is getting reassigned for each iteration ? Please guide. Regards, Sunny Singha. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.