Dear all, what is the best way to do this? end = c(2,6,4) I neeed: expand.grid(0:end[1],0:end[2],0:end[3]) Best regards JL _________________________________________________________________ Confira vídeos com notícias do NY Times, gols direto do Lance, videocas[[elided Hotmail spam]]