title: Resampling a dataset of x rows
body: <p>I have a data set of x entries, and I need to resample it to y entries, with y being a number smaller than x. my data set is not a series of numbers, of rather x rows, and I need the entire row of information when resampling.</p>
  
  <p>I am aware of the sample() function but given that my dataset is not a vector I am unclear how the exact code should be written.</p>
  
  <p>Any help would be appreciated!</p>