Learn R Programming

RJafroc (version 0.1.1)

ReadDataFile: Reads the data file and creates a dataset object

Description

Reads the dataset file to be analyzed and creates a dataset object for subsequent analysis.

Usage

ReadDataFile(fileName, format = "JAFROC", delimiter = ",")

Arguments

fileName
A string specifying the name of the file that contains the dataset. The extension of the file must match the corresponding format specified below.
format
A string specifying the format of the data file. It can be "JAFROC" (the default), "MRMC" or "iMRMC". For "MRMC" the format is determined by the extension of the data file as specified in http://perception.radiology.uiowa.edu/: the file extension can be .csv or .txt or .lrc. For file extension .imrmc the format is described in https://code.google.com/p/imrmc/.
delimiter
The string delimiter to be used for the "MRMC" format ("," is the default), see http://perception.radiology.uiowa.edu/. This parameter is not used when reading "JAFROC" or "iMRMC" data files.

Value

A dataset with the specified structure, see RJafroc-package.

Examples

Run this code
fileName <- system.file("tests", "rocData.xlsx", package = "RJafroc")
RocDataXlsx<- ReadDataFile(fileName)

## Not run: 
# fileName <- system.file("tests", "rocData.csv", package = "RJafroc")
# RocDataCsv<- ReadDataFile(fileName, format = "MRMC")
# 
# fileName <- system.file("tests", "rocData.imrmc", package = "RJafroc")
# RocDataImrmc<- ReadDataFile(fileName, format = "iMRMC")
# 
# fileName <- system.file("tests", "frocData.xlsx", package = "RJafroc")
# FrocDataXlsx <- ReadDataFile(fileName)
# 
# fileName <- system.file("tests", "roiData.xlsx", package = "RJafroc")
# RoiDataXlsx <- ReadDataFile(fileName)
# ## End(Not run)

Run the code above in your browser using DataLab