Raw Message
Message-ID: <CAN=W9xcuLTomMXmCm7rXYuwYnUguXCW63g8PsR29Ukep=aFStw@mail.gmail.com> Date: 2011-12-21T07:59:15Z From: Antje Subject: unique combinations Hi there, I have a vector and would like to create a data frame, which contains all unique combination of two elements, regardless of order. myVec <- c(1,2,3) what expand.grid does: 1,1 1,2 1,3 2,1 2,2 2,3 3,1 3,2 3,3 what I would like to have 1,1 1,2 1,3 2,2 2,3 3,3 Can anybody help?