[R] Function assignment

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Sat Jul 26 17:01:05 CEST 2014

What an awful idea... that would lead to incredibly hard-to-debug programs. No, you cannot do that. What kind of problem has led you to want such a capability? Perhaps we can suggest a simpler way to think about your problem.
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 July 26, 2014 5:29:59 AM PDT, Florian Ryan <florian.ryan at aim.com> wrote:
>I would like to use the variable name which i assign the return value
>of a function in a function. Is that possible?
>foo <- function(){
>    some not to me known R magic
>myVariableName <- foo()
>[1] "myVariableName"
>Hope someone can help me.
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list