samedi 21 octobre 2017

Place a vector randomly inside a matrix in R

How can I place the vector a<-c(1,2,3,4,5,6) in a ramdom position in the matrix m<-matrix(0, nrow = 10, ncol = 10)?

Thanks




Aucun commentaire:

Enregistrer un commentaire