mat2mrs_data: Convert a matrix (with spectral points in the column...

View source: R/mrs_data_proc.R

mat2mrs_dataR Documentation

Convert a matrix (with spectral points in the column dimension and dynamics in the row dimensions) into a mrs_data object.

Description

Convert a matrix (with spectral points in the column dimension and dynamics in the row dimensions) into a mrs_data object.

Usage

mat2mrs_data(
  mat,
  mrs_data = NULL,
  fs = NULL,
  ft = NULL,
  ref = NULL,
  nuc = NULL,
  fd = FALSE
)

Arguments

mat

data matrix.

mrs_data

example data to copy acquisition parameters from.

fs

sampling frequency in Hz.

ft

transmitter frequency in Hz.

ref

reference value for ppm scale.

nuc

resonant nucleus.

fd

flag to indicate if the matrix is in the frequency domain (logical).

Value

mrs_data object.


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