Exports the spectra matrix, sample names and chemical shift axis into an ASICS Spectra object.
Arguments
- dataset
 An nmr_dataset_1D object
- ...
 Arguments passed on to
ASICS::createSpectranorm.methodCharacter specifying the normalisation method to use on spectra ONLY if the
importSpectrafunction was not used.norm.paramsList containing normalisation parameteres (see
normaliseSpectrafor details) ONLY if theimportSpectrafunction was not used.
Value
An ASICS::Spectra object
Examples
if (requireNamespace("ASICS", quietly=TRUE)) {
  nsamp <- 3
  npoints <- 300
  metadata <- list(external = data.frame(
    NMRExperiment = paste0("Sample", seq_len(nsamp))
  ))
  dataset <- new_nmr_dataset_1D(
    ppm_axis = seq(from = 0.2, to = 10, length.out = npoints),
    data_1r = matrix(runif(nsamp * npoints), nrow = nsamp, ncol = npoints),
    metadata = metadata
  )
  forAsics <- to_ASICS(dataset)
  #ASICS::ASICS(forAsics)
}