title: How do I select a sample of rows at random with repetition from a matrix in R?
body: <p>How do I select a sample of rows at random with repetition from a matrix in R?</p>
  
  <p>So do be clear, I would start with a matrix of, for example, 100 rows and I would be able to select 5 of those rows and make a new matrix.  I would want the option of doing this either with or without replacement. </p>