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

Description Usage Arguments Value

View source: R/mrs_data_proc.R

Description

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

Usage

1
2
3
4
5
6
7
8
mat2mrs_data(
  mat,
  fs = def_fs(),
  ft = def_ft(),
  ref = def_ref(),
  nuc = def_nuc(),
  fd = FALSE
)

Arguments

mat

data matrix.

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.


neuroconductor/spant documentation built on May 25, 2021, 1:49 a.m.