The soilspec package comes with a data set called specSoilCol, which has 12 spectra of four types (A, B, C and D) of soils at three deferent depthss (Horizons 1, 2 and 3).
The spectra is a Reflectance scale:
The soilspec package comes with a data set called specSoilCol, which has 12 spectra of four types (A, B, C and D) of soils at three deferent depthss (Horizons 1, 2 and 3).
The spectra is a Reflectance scale:
Once we have installed the soilspec package we need some data (spectra) to work with, so we can import our own data, or to use the data available in the package (datsoilspc).
The data set has 391 spectra samples (range from 350 to 2500 nm in 1 nm steps) acquired with an AgriSpec instrument using a probe. All the information of this dataset is given in the description of this file in the poject.
Once we have the data in the workspace we can plot it as a first and quick look, so we realize that we must treat these spectra in order to have a better idea of the characteristics of the samples.
The spectra come with four constituent values: clay, sand, silt and Total Carbon.
I want to test during the coming days the soilspec package. It is a package not available yet from CRAN, but you can get it from the author author`s GitHub . I use in this case the tar.gz file, and after I install from the folder where I download it.
Take care during the installation, because you can receive some warnings and errors telling you that you don´t have some dependencies, as in my case the "MatrixStats" and "clhs" packages. Once I have installed these packages, I have the soilspec package ready to use and in the coming posts we will work with it.