Subset the Header files and Reshape

subset_hdr(all_hdr, keep_tags = relevant_tags(),
  unique_fields = relevant_fields(), force = TRUE)

Arguments

all_hdr

An output from read_all_hdr

keep_tags

tags to keep in the data

unique_fields

The fields that should uniquely identify a DICOM

force

Should the function warn (as opposed to fail) if unique_fields has duplicates?

Value

A wide data.frame of the information needed for filtering