Hi Haris, On Thursday 15 November 2007, Charilaos Skiadas wrote: > I must be missing something. What's wrong with: > > combn(set, 2) > > or if we must t(combn(set,2)), optionally with a function argument in > the combn call if something is to be done with the pairs? > > So if you really wanted the outputs to be "AB","AC" etc, you would do: > > combn(set,2, paste, collapse="")
Indeed, you got the right solution even from yesterday. I get my emails in a digest mode, so if you don't reply to all (CC all the others including the list) your solution doesn't arrive in my Inbox but until the next day. Best, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101 ______________________________________________ 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.