title: how to cut out a random samples from dataframes in r
body: <p>I'am new using R. I have a data frame (nrow=10200, ncol=16) with 20 replications. I want to take random sample (e.g. 1000 rows) from each replication and make new data frame (20000x16). Those randomly sampled rows need to be deleted from the original data frames. I know how to random sample, but failed to delete the sampled rows from the original file while sampling. Any hint on how to cut out a random sample from a data frame?  </p>