Skip to content
Prev 157310 / 398506 Next

Return a list

Mike Prager wrote:
arguably ugly and risky, but simple:

for (name in names(result)) assign(name, result[[name]])

(note, for this to work you actually need to name the components of the
returned list: return(list(a=a,b=b,...)))

vQ