Displaying 1 result from an estimated 1 matches for "sviter".
Did you mean:
siter
2008 Aug 15
2
Combination with repetition
Hi there! I can't find any information about creating combinations
with repetitions in R. The function combn() does create combinations,
but _without_ repetitions.
Here is what I need to do:
svIter <- 1000
xx <- matrix(rnorm(m*n), c(m, n))
sequence <- seq(range(xx)[1], range(xx)[2], length.out = svIter^(1/q))
expand.grid(secuence, secuence, .../q times/..., secuence)
That is, I need a grid which covers a q-dimensional space with range
range(xx) for each dimension, and a total numbe...