title: How to find area (in hectares) of a raster in R
body: <p>I am trying to find the area of my raster as shown:</p>
  <p>#reading in my raster</p>
  <pre><code>abvco2=raster(&quot;Avitabile_AGB_Map.tif&quot;)
  </code></pre>
  <p>#clipping it to Indonesia</p>
  <pre><code>abvco2new=mask(abvco2,Indonesia)
  </code></pre>
  <p>#finding the area</p>
  <pre><code>area=area(abvco2new)
  </code></pre>
  <p>However, area() is not helpful as it does not return me with a single area value.</p>
  <p>Thank you.</p>