Description Usage Arguments Value Examples
Read MRS data from a file.
1 2 3 4 5 6 7 8 9 10 |
fname |
filename of the dpt format MRS data. |
format |
string describing the data format. Must be one of the following : "spar_sdat", "rda", "ima", "twix", "pfile", "list_data", "paravis", "dpt", "lcm_raw", "rds", "nifti". If not specified, the format will be guessed from the filename extension. |
ft |
transmitter frequency in Hz (required for list_data format). |
fs |
sampling frequency in Hz (required for list_data format). |
ref |
reference value for ppm scale (required for list_data format). |
n_ref_scans |
override the number of water reference scans detected in the file header (GE p-file only). |
full_data |
export all data points, including those before the start of the FID (default = FALSE). |
verbose |
print data file information (default = FALSE). |
MRS data object.
1 2 3 | fname <- system.file("extdata", "philips_spar_sdat_WS.SDAT", package = "spant")
mrs_data <- read_mrs(fname)
print(mrs_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.