title: Difference between `values` & `getValues` on Raster in R
body: <p>I have a Raster Layer read into R. </p>
  
  <p>What is the difference between the below <code>values</code> which gives me a min of 0 and max of 289, and <code>getValues()</code> which gives me a minimum of 0 and maximum of 7?</p>
  
  <pre><code>class       : RasterLayer 
  dimensions  : 200, 200, 40000  (nrow, ncol, ncell)
  resolution  : 1, 1  (x, y)
  extent      : 0, 200, 0, 200  (xmin, xmax, ymin, ymax)
  values      : 0, 289  (min, max)
  
   [1] 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
   [43] 7 7 7 7 7 7 7 7 7 7 7 7 7 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
   [85] 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
  </code></pre>
  
  <p>In short, would like to know the difference in what the 2 types of min/max values refer to, since they seem to be referring to different things.</p>