Re: [R] Convert variable to STring

2012-07-30 Thread Rui Barradas
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

Re: [R] Convert variable to STring

2012-07-30 Thread arun
Hello, Not sure whether this is what you need. colnames(mymatrix)<-c("function1","function2","function3") > toString(colnames(mymatrix)) #[1] "function1, function2, function3" A.K. - Original Message - From: Alaios To: R help Cc: Sent: Monday, July 30, 2012 6:47 AM Subject: [R] Con

Re: [R] Convert variable to STring

2012-07-30 Thread Michael Weylandt
You may be searching for the deparse(substitute(x)) idiom. Michael On Jul 30, 2012, at 5:47 AM, Alaios wrote: > 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 t

Re: [R] Convert variable to STring

2012-07-30 Thread John Kane
Can you give us an example of what you mean by the functions listed below. Otherwise something like this seems to work xx <- 1 :4 x1 <- as.character(xx) mat <- matrix(1:12, nrow=3) John Kane Kingston ON Canada > -Original Message- > From: ala...@yahoo.com > Sent: Mon, 30 Jul 2012