An R package of miscelaneous functions for analysing spectral data