mardi 31 juillet 2018

Sample row of dataframe R until reach value

I try to sample randomly rows from a dataframe until to reach a value. and the number of row can differ depending of the values ramdomly selected. I try with the sample function but i dont know how to place condiction and how to have a non fixe length for row selected

Thks




Aucun commentaire:

Enregistrer un commentaire