Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rを使用して数字を繰り返さずに次の行列をランダム化するにはどうすればよいですか??
g=sample(1:28, 28), replace=T) HW=matrix(g, ncol=4, byrow=T) HW=as.table(HW) HW
現在、交換してサンプリングしているようです。オフにすると、必要な動作が得られます。
g = sample(1:28, 28, replace=F)