[R] getting the name of an object

2008-10-22 Thread francois Guilhaumon
Hello, I'm looking for a way to get the name of an object when it is used within an sapply. More precisely, with a simple example : I have a named list of objects : myList = list(a=rnorm(10),b=rnorm(10),c=rnorm(10)) I would like to create a new object from each of the components of myList

Re: [R] getting the name of an object

2008-10-22 Thread Duncan Murdoch
On 10/22/2008 10:02 AM, francois Guilhaumon wrote: Hello, I'm looking for a way to get the name of an object when it is used within an sapply. More precisely, with a simple example : I have a named list of objects : myList = list(a=rnorm(10),b=rnorm(10),c=rnorm(10)) I would like to create a

Re: [R] getting the name of an object

2008-10-22 Thread hadley wickham
On Wed, Oct 22, 2008 at 9:34 AM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 10/22/2008 10:02 AM, francois Guilhaumon wrote: Hello, I'm looking for a way to get the name of an object when it is used within an sapply. More precisely, with a simple example : I have a named list of objects :

Re: [R] getting the name of an object

2008-10-22 Thread Peter Dalgaard
hadley wickham wrote: On Wed, Oct 22, 2008 at 9:34 AM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 10/22/2008 10:02 AM, francois Guilhaumon wrote: Hello, I'm looking for a way to get the name of an object when it is used within an sapply. More precisely, with a simple example :