I'd like to return all objects that were assigned inside a function,
like so:
foo <- function() { 
  as <- LETTERS[1:3]
  for(a in as) assign(a, sample(1000, 1))
  return(as) # obviously not working
  }
I know I maybe should wrap it in a list but can't get it to work...
 
    