So I am wondering how to extract randomly a string from a list in R with NO REPLACEMENT till the list is empty. To write
sample(x, size=1, replace=FALSE)
is not helping me, since string are extracted more than once before the list gets empty.
Kind regards
Aucun commentaire:
Enregistrer un commentaire