title: Can I use suncalc to create a data table with sunrise and sunset times for each date with individual geographic locations?
body: <p>I'm trying to write a <code>function</code> to output sunrise and sunset times on each day of a year for individual counties in a state. Currently, I have a <code>table</code> with columns for counties and their <code>latitudes</code> and <code>longitudes</code>, eg:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>County</th>
  <th>Latitude</th>
  <th>Longitude</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Grand Junction</td>
  <td>65</td>
  <td>-80</td>
  </tr>
  <tr>
  <td>Larimer</td>
  <td>62</td>
  <td>-75</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I also have generated a <code>table</code> with <code>dates</code> for the year I'm interested in:</p>
  <pre><code>start.date = &quot;20200101&quot;; end.date = &quot;20201231&quot;
  Dates &lt;- seq(ymd(start.date), ymd(end.date), by = &quot;days&quot;)
  </code></pre>
  <p>And I have the <code>suncalc</code>-package that I can use for calculating the sunrise and sunset times for individual dates, eg:</p>
  <pre><code>library(suncalc)
  
  getSunlightTimes(date = 20200101, lat = 65, lon = -80, tz = &quot;MST&quot;)
  </code></pre>
  <p>Knowing this, what would be the best way to generate a <code>data.frame</code> with sunrise and sunset times for each county on each day of the year?</p>
  <p>Part of this is just me being confused on how to pull from my <code>table</code> properly to avoid inputting code a few hundred times, and the other part is being concerned about making it look clean and being easy to navigate (but with so many values, I know that might be inevitable).</p>