Soil Spectral Analysis in R