Re: [R] Object name and Strings?

2006-07-18 Thread Stéphane Cruveiller
That is exactly what I wanted to do... Thanks for the hint... Stéphane. Prof Brian Ripley a écrit : > On Tue, 18 Jul 2006, Stéphane Cruveiller wrote: > > >> Thanks for your answer. >> >> Here is what I am trying to do. >> I have a list which is called MyList. I would like to get only the "nam

Re: [R] Object name and Strings?

2006-07-18 Thread Prof Brian Ripley
On Tue, 18 Jul 2006, Stéphane Cruveiller wrote: > Thanks for your answer. > > Here is what I am trying to do. > I have a list which is called MyList. I would like to get only the "name" > of this object as a simple characters string. i.e. Is there a function in R > which is able > to give: > > >

Re: [R] Object name and Strings?

2006-07-18 Thread Stéphane Cruveiller
Thanks for your answer. Here is what I am trying to do. I have a list which is called MyList. I would like to get only the "name" of this object as a simple characters string. i.e. Is there a function in R which is able to give: > name<-fun(Mylist) > name "MyList" thanks in advance, Stéphan

Re: [R] Object name and Strings?

2006-07-18 Thread Prof Brian Ripley
On Tue, 18 Jul 2006, Stéphane Cruveiller wrote: > Hi all, > > Is there a simple way to convert an object name to a characters string? Yes, as.character, as in > x <- as.name("foo") > x foo > as.character(x) [1] "foo" However, I suspect you are not using the words in their technical sense (a na

Re: [R] Object name and Strings?

2006-07-18 Thread Jacques VESLOT
> deparse(substitute(a)) [1] "a" --- Jacques VESLOT CNRS UMR 8090 I.B.L (2ème étage) 1 rue du Professeur Calmette B.P. 245 59019 Lille Cedex Tel : 33 (0)3.20.87.10.44 Fax : 33 (0)3.20.87.10.31 http://www-good.ibl.fr --

[R] Object name and Strings?

2006-07-18 Thread Stéphane Cruveiller
Hi all, Is there a simple way to convert an object name to a characters string? Stéphane. __ 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.ht