I have a list data a, and each of a[[i]] contains different cols of data. I want to convert the list data into several matrix.
matrix1=data.frame(matrix(unlist(a[[1]]), ncol = 10, byrow=F),stringsAsFactors=FALSE);
matrix2=data.frame(matrix(unlist(a[[2]]), ncol = 10, byrow=F),stringsAsFactors=FALSE);
……
matrix50=data.frame(matrix(unlist(a[[50]]), ncol = 10, byrow=F),stringsAsFactors=FALSE)
I guess it should use the function 'lapply ', but I am not familiar with this function, so I keep getting errors. Hope to get your help. Thank you!