powered by
Read MRS data from a file.
read_mrs( fname, format, ft = NULL, fs = NULL, ref = NULL, n_ref_scans = NULL, full_data = FALSE, verbose = FALSE )
filename of the dpt format MRS data.
string describing the data format. May be one of the following : "spar_sdat", "rda", "ima", "twix", "pfile", "list_data", "paravis", "dpt", "lcm_raw".
transmitter frequency in Hz (required for list_data format).
sampling frequency in Hz (required for list_data format).
reference value for ppm scale (required for list_data format).
override the number of water reference scans detected in the file header (GE p-file only).
export all data points, including those before the start of the FID (default = FALSE).
print data file information (default = FALSE).
MRS data object.
# NOT RUN { fname <- system.file("extdata", "philips_spar_sdat_WS.SDAT", package = "spant") mrs_data <- read_mrs(fname, format = "spar_sdat") print(mrs_data) # }
Run the code above in your browser using DataLab