Switch to unified view

a b/RadETL/R/imageTotalCount_OccurrenceTable.R
1
#' 'imageTotalCount'
2
#'
3
#' imageTotalCount function indicates total count of each DICOM files in each occurrences
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 dataframe indicating total count of each DICOM files in each occurrences
12
#' @examples
13
#' DICOMList<-DICOMHeaderList(DICOMFolderPath)
14
#' imageTotalCount(DICOMList)
15
#' @export
16
17
#imageTotalCount
18
imageTotalCount<-function(DICOMList){
19
    imageTotalCount<-radiologyOccurrenceId(DICOMList) %>% group_by(radiologyOccurrenceId) %>% count(imageTotalCount=n())
20
    imageTotalCount[,c(1:2)]
21
}
22