samedi 5 mai 2018

Randomly populate R datafame with integers between

I would like to create an R dataframe with random integers WITHOUT repetition.

That is something like this:

nrows<13
ncols<-30
beg<-1
end<-30

df(nrows,ncols,randint(1,30))

Is there a way of doing this while specifying no repetitions.




Aucun commentaire:

Enregistrer un commentaire