SaveDataFile: Save ROC data file in a different format

Description Usage Arguments Examples

View source: R/SaveDataFile.R

Description

Save ROC data file in a different format so it can be analyzed with alternate software.

Usage

1
2
SaveDataFile(dataset, fileName, format = "JAFROC",
  dataDscrpt = paste0(deparse(substitute(dataset)), " Data File"))

Arguments

dataset

The dataset object to be saved in the specified format, see RJafroc-package.

fileName

The file name of the output data file. The extension of the data file must match the corresponding format, see RJafroc-package.

format

The format of the data file, which can be "JAFROC", "MRMC" or "iMRMC", see RJafroc-package.

dataDscrpt

An optional string variable describing the data file, the default value is the variable name of dataset. The decription appears on the first line of *.lrc or *imrmc data file. This parameter is not used when saving dataset in other formats.

Examples

1
2
3
4
5
6
7
8
SaveDataFile(dataset = rocData, fileName = "rocData2.xlsx", format = "JAFROC")
SaveDataFile(dataset = rocData, fileName = "rocData2.csv", format = "MRMC")
SaveDataFile(dataset = rocData, fileName = "rocData2.lrc", format = "MRMC",
             dataDscrpt = "ExampleROCdata")
SaveDataFile(dataset = rocData, fileName = "rocData2.txt", format = "MRMC",
             dataDscrpt = "ExampleROCdata2")
SaveDataFile(dataset = rocData, fileName = "rocData.imrmc", format = "iMRMC",
             dataDscrpt = "ExampleROCdata3")

RJafroc documentation built on May 19, 2017, 12:22 p.m.

Search within the RJafroc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.