| xlsx.from.dcm {espadon} | R Documentation | 
Converting DICOM files to .xlsx files
Description
The xlsx.from.dcm function creates an Excel file from
DICOM files.
Usage
xlsx.from.dcm(
  dcm.filenames,
  xlsx.filenames,
  multipage = TRUE,
  txt.sep = "\\",
  txt.length = 100,
  tag.dictionary = dicom.tag.dictionary()
)
Arguments
| dcm.filenames | String vector, representing the list of full names of DICOM files. | 
| xlsx.filenames | String vector, representing the list of full names of
created *.xlsx files. If  | 
| multipage | Boolean. If TRUE, all  | 
| txt.sep | String. Used if  | 
| txt.length | Positive integer. Used if  | 
| tag.dictionary | Dataframe, by default equal to dicom.tag.dictionary, whose structure it must keep. This dataframe is used to parse DICOM files. | 
Value
Returns a boolean vector, establishing the existence of the created Excel files.
Examples
# First, save toy.dicom.raw () raw data to a temporary file pat.dir for testing.
pat.dir <- file.path (tempdir(), "PM_dcm") 
dir.create (pat.dir, recursive = TRUE) 
dcm.filename <- tempfile (pattern = "PMrtplan", tmpdir = pat.dir, fileext = ".dcm")
zz <- file (dcm.filename, "wb")
writeBin (toy.dicom.raw (), zz, size = 1)
close (zz)
list.files (pat.dir)
# Creating an Excel file
xlsx.fnames <- file.path (pat.dir, 
                          paste (basename (dcm.filename),"xlsx", sep = "."))
xlsx.from.dcm (dcm.filename, xlsx.fnames)
list.files (pat.dir)
# Cleaning temporary directory
unlink (pat.dir, recursive = TRUE)
[Package espadon version 1.7.2 Index]