R package for processing and sample selection for vis-NIR spectral data