Write MRS data object to file.

write_mrs(mrs_data, fname, format = NULL)

Arguments

mrs_data

object to be written to file.

fname

the filename of the output.

format

string describing the data format. Must be one of the following : "nifti", "dpt", "lcm_raw", "rds". If not specified, the format will be guessed from the filename extension.