Re: [R] Getting variable names in function output

2011-02-05 Thread Uwe Ligges
I realy think you are on a completely non-R way of implementing something that could be done much better. But since I do not know what you are going to do, here is the answer for your question: Just add names(end) <- end one line before your return() statement. Uwe Ligges On 03.02.2011 0

[R] Getting variable names in function output

2011-02-02 Thread Sébastien Bihorel
Dear R-users, I would like to have some advises about a problem illustrated by the following snippet. Within myf, I need to evaluate a piece of R code that is passed as a character argument and then return the objects that are created by this code. The difficulty comes from the fact that the conte