title: How to solve object not found?
body: <p>I'm using spectra indices code for hyperspectral data. <a href="https://github.com/serbinsh/R-FieldSpectra" rel="nofollow noreferrer">https://github.com/serbinsh/R-FieldSpectra</a>  this is the link for the program I am using. I get to step 2, in line 19 I receive an error for object 'dims' not found. This is the line of code where I receive the error.</p>
  <p><code>for (i in 1:dims[1]){ print(paste(&quot;File: &quot;,spectra$Spectra[i],sep=&quot;&quot;)) }</code></p>