writeROI: Write ROI list file

Description Usage Arguments Examples

View source: R/writeROI.R

Description

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

Usage

1
writeROI(ROIList, roifilepath)

Arguments

ROIList

a list, ROI List variable to be written

roifilepath

a character string, path to the ROI file

Examples

1
2
3
4
5
6
7
8
9
#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)

bnasr/xROI documentation built on June 7, 2021, 7:56 a.m.