Re: [R] expand.grid using a repeated vector as a parameter

2008-05-02 Thread Greg Snow
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Simon Parker > Sent: Friday, May 02, 2008 11:50 AM > To: r-help@r-project.org > Subject: [R] expand.grid using a repeated vector as a parameter > > Hello. > > > I'm trying to do this (not necessar

Re: [R] expand.grid using a repeated vector as a parameter

2008-05-02 Thread Prof Brian Ripley
?do.call On Fri, 2 May 2008, Simon Parker wrote: Hello. I'm trying to do this (not necessarily 0:1) : expand.grid ( 0:1, 0:1, 0:1, 0:1, 0:1) etc..etc. but I want to have control over how many 0:1 are included. Any ideas please ? Thankyou. Simon Parker Imperial College -

[R] expand.grid using a repeated vector as a parameter

2008-05-02 Thread Simon Parker
Hello. I'm trying to do this (not necessarily 0:1) : expand.grid ( 0:1, 0:1, 0:1, 0:1, 0:1) etc..etc. but I want to have control over how many 0:1 are included. Any ideas please ? Thankyou. Simon Parker Imperial College - A Smarter Email.