[R] Latin hyper cube sampling from expand.grid()

From: Prasanna <prasannaprakash_at_gmail.com>
Date: Mon 22 Jan 2007 - 15:59:58 GMT


Dear R experts

I am looking for a package which gives me latin hyper cube samples from the grid of values produced from the command "expand.grid". Any pointers to this issue might be very useful. Basically, I am doing the following:

> a<-(1:10)
> b<-(20:30)
> dataGrid<-expand.grid(a,b)

Now, is there a way to use this "dataGrid" in the package "lhs" to get latin hyper cube samples.

Thanking you
Prasanna



R-help@stat.math.ethz.ch 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 Tue Jan 23 03:38:46 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 24 Jan 2007 - 04:30:33 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.