a b/RadETL/R/DicomPath_ImageTable.R
1
#' 'DicomPath'
2
#'
3
#' DicomPath function indicates path of each DICOM files
4
#'
5
#'
6
#' @param DICOMList you can put it like this and then run the function : DICOMList<-DICOMHeaderList(DICOMFolderPath)
7
#' @import dplyr
8
#' @importFrom magrittr "%>%"
9
#'
10
#'
11
#' @return A list indicating path of each DICOM files
12
#' @examples
13
#' DICOMList<-DICOMHeaderList(DICOMFolderPath)
14
#' lapply(DICOMList)
15
#' @export
16
17
dicomPath<-function(DICOMList){
18
    dicomPath<-lapply(DICOMList, function(x){
19
        dicomPath<-names(x)
20
        if(is.null(dicomPath)==T){
21
            return('NA')
22
        }
23
        return(dicomPath)
24
    })
25
    dicomPath<-as.data.frame(do.call(rbind, dicomPath))
26
    colnames(dicomPath)<-'dicomPath'
27
    return(dicomPath)
28
}
29