Learn R Programming

RJafroc (version 0.0.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.
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

Examples

Run this code
fullName <- "http://www.devchakraborty.com/RocData/rocData.xlsx"
download.file(url = fullName, basename(fullName), mode = "wb")
RocDataXlsx<- ReadDataFile(basename(fullName))

fullName <- "http://www.devchakraborty.com/RocData/rocData.csv"
download.file(url = fullName, basename(fullName))
RocDataCsv<- ReadDataFile(basename(fullName), format = "MRMC")

fullName <- "http://www.devchakraborty.com/RocData/rocData.imrmc"
download.file(url = fullName, basename(fullName))
RocDataImrmc<- ReadDataFile(basename(fullName), format = "iMRMC")

fullName <- "http://www.devchakraborty.com/FrocData/frocData.xlsx"
download.file(url = fullName, basename(fullName), mode = "wb")
FrocDataXlsx <- ReadDataFile(basename(fullName))

fullName <- "http://www.devchakraborty.com/RoiData/roiData.xlsx"
download.file(url = fullName, basename(fullName), mode = "wb")
RoiDataXlsx <- ReadDataFile(basename(fullName))

Run the code above in your browser using DataLab