Hello,

Is this it?

function1 <- function(x) print(x)
name.function1 <- deparse(substitute(function1))
name.function1

Hope this helps,

Rui Barradas
Em 30-07-2012 11:47, Alaios escreveu:
> Dear all,
> I have a variable that I would like also to use it as a string. The reasons is that I want to collect results from different function to one table.. So when I use the
>   colnames(mymatrix) <-c(function1.function2,function3)
> the function1, function2, function3 to be "converted" to simple strings so as
>
>   colnames(mymatrix) <-c("function1","function2","function3")
>
> Could you please help me understand how I can do that in R?
>
> Regards
>
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help@r-project.org 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.


	[[alternative HTML version deleted]]

