title: How to write big rasters into a table or database using R?
body: <p>I have several big rasters in GeoTIFF format.</p>
  
  <p>Dimensions are 34565, 116908, 4 040 925 020  (nrow, ncol, ncell) of each (perfect overlap), values are of different types: integer, float...</p>
  
  <p>How can I write these raster values into a table or database using R (or other software), so later I can analyze it using Spark, python or R? </p>
  
  <p>I will need to process several rasters, so ideally output table look like:</p>
  
  <pre><code>row     column     raster1.value  raster2.value  raster3.value
  1       1          56             76             100
  1       2          18             45             89
  ...     ...        ...            ...            ...
  
  34656   116908     23             39             43
  </code></pre>
  
  <p>I have assess to computing facility with 32 cores and 128 Gb of RAM. So, parallel computing is also possible.</p>
  
  <p>I will be very thankful for your help!</p>