mercredi 15 novembre 2017

Make multiple random number of copies of rows in a dataframe

I have a dataframe in r with 100 rows of unique first and last name and address. I also have columns for weather 1 and weather 2. I want to make a random number of copies between 50 and 100 for each row. How would I do that?
df$fname df$lname df$street df$town df%state df$weather1 df$weather2




Aucun commentaire:

Enregistrer un commentaire