I'd like to flatten a list from 2 levels to 1 level. This has to be easy, but is currently opaque to me.
temp <- list(1:3, list(letters[1:3], duh= 5:8), zed=15:17) Desired result would be a 4 element list. [[1]] 1:3 [[2]] "a", "b", "c" [[duh]] 5:8 [[zed]] 15:17 (Preservation of the names is not important) Terry T ______________________________________________ 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.