# $\alpha$ and $\beta$ diversity indices from vector layer
The folowing code computes $\alpha$ and $\beta$ diversity from field plots and extracts the corresponding diversity index from previouly computed rasters in order to have a validation analysis.
```{r Validation}
```{r alpha and beta diversity indices from vector layer}
# location of the spectral species raster needed for validation
<h1><spanclass="header-section-number">3</span><spanclass="math inline">\(\alpha\)</span> and <spanclass="math inline">\(\beta\)</span> diversity indices from vector layer</h1>
<p>The folowing code computes <spanclass="math inline">\(\alpha\)</span> and <spanclass="math inline">\(\beta\)</span> diversity from field plots and extracts the corresponding diversity index from previouly computed rasters in order to have a validation analysis.</p>
<divclass="sourceCode"><preclass="sourceCode r"><codeclass="sourceCode r"><spanclass="co"># location of the spectral species raster needed for validation</span>