Re: [R] column wise paste of data.frames

2008-07-18 Thread Patrick Burns
do.call('paste', c(data.frame(letters, LETTERS), list(sep='/'))) Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Sebastian Weber wrote: Hi everybody! I'm sure that I overlook something and feel quite stu

Re: [R] column wise paste of data.frames

2008-07-18 Thread Dimitris Rizopoulos
try this: data("Orthodont", package = "nlme") metaFields <- c("Subject", "Sex") Orthodont$ID <- do.call("paste", c(Orthodont[metaFields], sep = "/")) I hope it helps. Best, Dimitris Dimitris Rizopoulos Biostatistical Centre School of Public Health Catholic University of Leuven Address: