Learn R Programming

xROI (version 0.9.20)

writeROI: Write ROI list file

Description

This function writes the ROI list file on a disk space.

Usage

writeROI(ROIList, roifilepath)

Arguments

ROIList

a list, ROI List variable to be written

roifilepath

a character string, path to the ROI file

Examples

Run this code
# NOT RUN {
#loading the ROI files from the example directory
f <- system.file(package = 'xROI', 'example/ROI/example_DB_0001_roi.csv')

#parsing the example ROI file and store in roi
roi <- parseROI(f)

#write the loaded ROI in the temporary path
tempPath <- file.path(tempdir(), 'roi.csv')
writeROI(roi, tempPath)

# }

Run the code above in your browser using DataLab