Return three lists with foreach loop in R
问题 I've been struggling with the workings of foreach loops in R. To speed up my code I'm trying to change my for loop into a foreach loop with %dopar%. My goal is to end up with three lists of the same length, each filled with data frames that represent scores between two users (I'm comparing three different calculation methods). My code used to be (very basic representation): for (a in 1:5) { #Just creating some sample data resultA <- data.frame(matrix(nrow = 40, ncol = 3)) resultB <- data