Skip to content
Prev 348404 / 398500 Next

return named list from foreach

You cannot do that in one step. Do it right after:

names(out) <- df$nm

Please don't post using HTML format.. it scrambles code, and since we cannot see what you saw it doesn't help in any way.

Also note that "df" is a function in the base stats package... not a good name to use.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
On February 20, 2015 7:44:41 AM PST, Alexander Shenkin <ashenkin at ufl.edu> wrote: