matchHeader.Rd
A convenient wrapper function that utilizes internal functions to match character strings with the DICOM header information.
matchHeader(hdr, string)
hdr | is the result from extracting information from a DICOM header
field; e.g., using |
---|---|
string | is a character string to be matched with the DICOM header. |
A logical vector of length length(hdr)
.
Digital Imaging and Communications in Medicine (DICOM)
http://medical.nema.org
Brandon Whitcher bwhitcher@gmail.com
x <- readDICOMFile(system.file("dcm/Abdo.dcm", package="oro.dicom"))
modality <- extractHeader(x$hdr, "Modality", numeric=FALSE)
matchHeader(modality, "mr") # case insensitive by default
#> [1] TRUE