Dear All, I am interested to know how assign a list to a list of lists. For example how to assign the list a = list(3,3,3) to the list b:
> b [[1]] [[1]][[1]] [1] 0 [[1]][[2]] [1] 0 [[1]][[3]] [1] 0 [[2]] [[2]][[1]] [1] 0 [[2]][[2]] [1] 0 [[2]][[3]] [1] 0 [[3]] [[3]][[1]] [1] 0 [[3]][[2]] [1] 0 [[3]][[3]] [1] 0 so that after the assignment > b [[1]] [[1]][[1]] [1] 0 [[1]][[2]] [1] 0 [[1]][[3]] [1] 3 [[2]] [[2]][[1]] [1] 0 [[2]][[2]] [1] 0 [[2]][[3]] [1] 3 [[3]] [[3]][[1]] [1] 0 [[3]][[2]] [1] 0 [[3]][[3]] [1] 3 Thanks a lot! Ivo ______________________________________________ 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.