basis2mrs_data: Convert a basis object to an mrs_data object - where basis...

View source: R/basis_set.R

basis2mrs_dataR Documentation

Convert a basis object to an mrs_data object - where basis signals are spread across the dynamic dimension.

Description

Convert a basis object to an mrs_data object - where basis signals are spread across the dynamic dimension.

Usage

basis2mrs_data(
  basis,
  sum_elements = FALSE,
  amps = NULL,
  shifts = NULL,
  lbs = NULL
)

Arguments

basis

basis set object.

sum_elements

return the sum of basis elements (logical)

amps

a vector of scaling factors to apply to each basis element.

shifts

a vector of frequency shifts (in ppm) to apply to each basis element.

lbs

a vector of Lorentzian line broadening terms (in Hz) to apply to each basis element.

Value

an mrs_data object with basis signals spread across the dynamic dimension or summed.


spant documentation built on Sept. 11, 2024, 9:13 p.m.