loop sample 在 Sample in for loop R - Stack Overflow 的評價 The replicate function might be what you're looking for. I'll only do 10 replicates to not overflow the screen. > sample(c("MU","MG","PU" ... ... <看更多>