# NOT RUN {
res <- signal_detection(xr)
# xr is the matrix of background removed spectra
# xr can be obtained by background_removal function
head(res$tim.index) ## check the first few time indices of signals
# }
Run the code above in your browser using DataLab