title: What is the R equivalent of pandas .resample() method?
body: <p>This is the closest link I've found: <a href="https://stats.stackexchange.com/questions/5305/how-to-re-sample-an-xts-time-series-in-r">https://stats.stackexchange.com/questions/5305/how-to-re-sample-an-xts-time-series-in-r</a></p>
  
  <p>But I don't see anything about the different ways to aggregate the data (like mean, count, anonymous function) which you can do in pandas.</p>
  
  <p>For my program, I'm trying to have a dataframe be resampled every 2 minutes and take the average of the 2 values at each interval. Thanks!</p>