On Wed, Sep 10, 2008 at 11:34 PM, Ron Michael <ron_michael70 at yahoo.com> wrote: > I have two variables (x,y) : > > x : it takes all integer values from 0 to y and, > y : takes all values from 0, 10 > > I am looking for some R code to find all possible pairs of (x,y). Can anyone please help me? ?expand.grid Hadley -- http://had.co.nz/