Thanks all. All solutions are usable. These two I received off-list: > toString(paste(rep("2",3), sep=",")) [1] "2, 2, 2"
and > paste(rep("2,",3),collapse="") Liviu On Wed, Dec 3, 2008 at 9:14 AM, Dimitris Rizopoulos <[EMAIL PROTECTED]> wrote: > have a look at ?paste(), e.g., > > paste(rep(2, 3), collapse = ",") > > and if you need a comma at the end, then you can again use paste(), > > paste(paste(rep(2, 3), collapse = ","), ",", sep = "") > ______________________________________________ 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.