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

Prasanna prasannaprakash at gmail.com
Mon Jan 22 16:59:58 CET 2007

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

> 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

More information about the R-help mailing list