On Wed, Aug 10, 2011 at 11:39 PM, David Winsemius <dwinsem...@comcast.net> wrote: >> is.vector(x) > [1] TRUE > > You probably didn't realize that lists _are_ vectors before this. > Nice to know.
> Hopefully this expected invitation to grilling will not result in severe > burns. I note that one of the *apply family would have been successful in > returning the desired object in conjunction with c() : > >> rapply(x, c) > [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" > > `rapply` is designed to do a complete traversal of the list structure and > its default "how" argument is "unlist". It was linked from the page where > you were looking at `simplify2array`. > This also does the job nicely. As does > c(x, recursive=T) [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" per Peter's suggestion. Thanks all for all the solutions. Regards Liviu ______________________________________________ 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.