| DfReadDataFile | R Documentation |
Read an Excel file and create an ROC, FROC or LROC dataset object from it.
DfReadDataFile(
fileName,
format = "JAFROC",
newExcelFileFormat = FALSE,
lrocForcedMark = NA,
delimiter = ",",
sequentialNames = FALSE
)
fileName |
A string specifying the name of the file. The file-extension
must match the |
format |
A string specifying the format of the data file. It can be
|
newExcelFileFormat |
Logical. Must be true to read LROC data. This
argument only applies to the |
lrocForcedMark |
Logical: For LROC dataset only: is a forced mark
required on every image? The default is |
delimiter |
The string delimiter to be used for the |
sequentialNames |
A logical variable: if |
A dataset with the structure specified in
RJafroc-package.
The "MRMC" format is deprecated. For non-JAFROC formats four
file extensions (.csv, .txt, .lrc and .imrmc)
are possible, all of which are restricted to ROC data. Only iMRMC
format is now supported, i.e, files with extension .imrmc. Other
formats (.csv, .txt, .lrc) are deprecated. Such files
can still be read by this function and then saved to a JAFROC format file
for further analysis within this package.
For non-JAFROC data file formats, the readerID and
modalityID fields must be unique integers.
This function is used only for factorial datasets.
fileName <- system.file("extdata", "toyFiles/ROC/rocCr.xlsx",
package = "RJafroc", mustWork = TRUE)
rdrArr1D <- DfReadDataFile(fileName, newExcelFileFormat = TRUE)
fileName <- system.file("extdata", "Roc.xlsx",
package = "RJafroc", mustWork = TRUE)
RocDataXlsx <- DfReadDataFile(fileName)
fileName <- system.file("extdata", "RocData.csv",
package = "RJafroc", mustWork = TRUE)
RocDataCsv<- DfReadDataFile(fileName, format = "MRMC")
fileName <- system.file("extdata", "RocData.imrmc",
package = "RJafroc", mustWork = TRUE)
RocDataImrmc<- DfReadDataFile(fileName, format = "iMRMC")
fileName <- system.file("extdata", "Froc.xlsx",
package = "RJafroc", mustWork = TRUE)
FrocDataXlsx <- DfReadDataFile(fileName, sequentialNames = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.