anonymize_dates: Anonymize dates in a volume object.

View source: R/anonymize_dates.R

anonymize_datesR Documentation

Anonymize dates in a volume object.

Description

anonymize_dates sets the date of birth ('dob') to a given reference point then adjusts the 'exam_time' and 'visit_date' values to preserve the age at visit.

Usage

anonymize_dates(
  header,
  anon_dob = as.POSIXct(0, origin = "1970-01-01", tz = "UTC")
)

Arguments

header

The header list from a volume object.

anon_dob

The new date of birth. Must be at or after the UNIX date-time origin of 1970-01-01 UTC (the default value).

Value

A new header list with the dates adjusted.


barefootbiology/heyexr documentation built on July 9, 2022, 3:35 a.m.