[R] All possible pairs of two variables

hadley wickham h.wickham at gmail.com
Thu Sep 11 14:53:16 CEST 2008


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/



More information about the R-help mailing list