I think you need to provide a richer example:
niceplot<-function(...) {
parms=list(...)
for (x in parms) {
cat(x)
}
}
> e="e"
> niceplot(e)
e
On Mar 10, 2010, at 5:21 PM, ManInMoon wrote:
I have writtn a function where I pass a variable number of arguments.
I They are vectors and I can manipulate them, but I need to get hold
of the
name for a legend.
niceplot<-function(...) {
parms=list(...)
for (x in parms) {
DoSomethingWith(x)
}
}
BUT how how can I get something like namestring(...) of
nameofvector(x)?
--
View this message in context:
http://n4.nabble.com/colname-of-arguments-tp1588146p1588146.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
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.
______________________________________________
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.