title: R to return max and min dates for list of dataframes
body: <p>I used the following code to get the max and  min dates of the &quot;dates&quot; column of 3 different dataframes. I do not receive any output in my console?  Did I do it correctly, or do I need to create a separate function and use lapply?</p>
  <pre><code>df2 &lt;- list(daily_activity,
  +             hourly_activity,
  +             sleep_day)
  &gt; for (i in 1:length(df2)){
  +   max_date &lt;- max(df2[[i]]$date)
  +   min_date &lt;- min(df2[[i]]$date)
  +   return(c(max_date,min_date))
  + }
  </code></pre>