# change the value of tags "(0010,0010)" and "(0010,0020)" in the
# dummy raw data toy.dicom.raw ()
new.raw.data <- dicom.set.tag.value (toy.dicom.raw (),
tag = c ("(0010,0010)", "(0010,0020)"),
tag.value = c ("unknown", "000001"))
# change control
data <- dicom.parser (new.raw.data)
data[data$TAG %in% c ("(0010,0010)", "(0010,0020)"), ]
# save data in a the new file
#############################
# new.file.name <- "new.dcm"
# zz <- file (new.file.name, "wb")
# writeBin (new.raw.data , zz, size = 1)
# close (zz)
Run the code above in your browser using DataLab