?get to convert names into objects > -----Original Message----- > From: Stephane DRAY [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 24, 2004 11:41 AM > To: [EMAIL PROTECTED] > Subject: [R] binding vectors or matrix using their names > > > Hello list, > I have two vectors x and x2: > > x=runif(10) > x2=runif(10) > > and one vectors with their names : > > my.names=c("x","x2") > > I would like to cbind these two vectors using their names > contained in the > vector my.names. > I can create a string with comma > ncomma=paste(my.names,collapse=",") > > and now, I just need a function to transform this string into > a adequate > argument for cbind: > > cbind(afunction(ncomma)) > > Is there in R a function that can do the job ? If not, how > can I do it ?? > > Thanks in advance, > Sincerely. > > > Stéphane DRAY > -------------------------------------------------------------- > ------------------------------------ > > Département des Sciences Biologiques > Université de Montréal, C.P. 6128, succursale centre-ville > Montréal, Québec H3C 3J7, Canada > > Tel : 514 343 6111 poste 1233 > E-mail : [EMAIL PROTECTED] > -------------------------------------------------------------- > ------------------------------------ > > Web > http://www.steph280.freesurf.fr/ > > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo> /r-help > PLEASE > do read the posting guide! > http://www.R-project.org/posting-guide.html >
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html