[R] Getting variable name used in function...

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jul 31 11:55:04 CEST 2007

Levent TERLEMEZ wrote:
> Dear Users,
>     I am using functions for calculations in my study. I have two functions and one is calling the other two times one after another. But the called function deals with two different data object (matrix, data frame, etc.), so I could not make the second function output  data object-free (for example, Ý would like to write csv files but could not give different file names) and I would like to get object name. Is it possible to get data object's name. And if it is possible, how can I assign this name as an new data object name with an extra addition, for example, data objects name+"2".
> Thanks for your help.
> Example:
> function1(var1,var2)
>     function2(var1)
>     function2(var2)
>     ...

Can you explain what you want in an example, please? I do not really 
undertsand what you are trying to do.

Uwe Ligges

> With my best regards,
> Levent TERLEMEZ.
> 	[[alternative HTML version deleted]]
> ------------------------------------------------------------------------
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list