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

2007-07-31 Thread Levent TERLEMEZ
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)
...

With my best regards,
Levent TERLEMEZ.

[[alternative HTML version deleted]]

__
R-help@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.


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

2007-07-31 Thread Uwe Ligges


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@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.

__
R-help@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.