[R] string substitution for argument in function

2012-03-25 Thread Pedro Martinez
ft für Naturforschung Rechtsfähiger Verein gemäß § 22 BGB Senckenberganlage 25 60325 Frankfurt Direktorium: Prof. Dr. Dr. h.c. Volker Mosbrugger, Prof. Dr. Michael Türkay, Dr. Johannes Heilmann, Prof. Dr. Pedro Martinez Arbizu, Prof. Dr. Georg Zizka, Prof. Dr. Uwe Fritz Vorsitzender des Präsidiu

Re: [R] string substitution for argument in function

2012-03-26 Thread Prof. Dr. Pedro Martinez Arbizu
epted as column name, see below: > a = c('one','two','three') > data =c() > data=cbind(elem = 2,data) > data elem [1,]2 > data=cbind('elem' = 2,data) > data elem elem [1,]22 > elem Fehler: Objekt 'elem' ni

Re: [R] string substitution for argument in function

2012-03-26 Thread Prof. Dr. Pedro Martinez Arbizu
'one','two','three') data.frame(eval(substitute(rbind(var,2),list(var=a ?substitute ?eval Weidong Gu On Sun, Mar 25, 2012 at 5:22 PM, Pedro Martinez wrote: hello, I want to iterate through a list of names and use each element as an argument in a function. Fo