Re: [R] Obtaining the name of an object XXXX

2011-05-04 Thread Rolf Turner
On 05/05/11 11:16, Dan Abner wrote: Hello everyone, How does one write a function to return the name of an input object (that is assumed to be a data frame) as a character string? I tired using the get(), but this does not work as I had hoped. For example: myfn<-function(x){ output<-data.frame

[R] Obtaining the name of an object XXXX

2011-05-04 Thread Dan Abner
Hello everyone, How does one write a function to return the name of an input object (that is assumed to be a data frame) as a character string? I tired using the get(), but this does not work as I had hoped. For example: myfn<-function(x){ output<-data.frame(Attribute="Data Set Name",Value=as.ch