Re: [R] All possible samples for two variables

From: Alexander Engelhardt <alex_at_chaotic-neutral.de>
Date: Sat, 21 May 2011 10:02:47 +0200

Am 21.05.2011 06:30, schrieb Sharma D:
> How to generate all possible samples of size 5 for the two variables in one > analysis.

Like this?

> x <- 1:5
> y <- 6:10
> expand.grid(x,y)



R-help_at_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. Received on Sat 21 May 2011 - 08:07:13 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 21 May 2011 - 10:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive