View source: R/addDemographicsQuery.R
addDateOfBirthQuery | R Documentation |
'r lifecycle::badge("experimental")' Same as 'addDateOfBirth()', except query is not computed to a table.
addDateOfBirthQuery(
x,
dateOfBirthName = "date_of_birth",
missingDay = 1,
missingMonth = 1,
imposeDay = FALSE,
imposeMonth = FALSE
)
x |
Table in the cdm that contains 'person_id' or 'subject_id'. |
dateOfBirthName |
Name of the column to be added with the date of birth. |
missingDay |
Day of the individuals with no or imposed day of birth. |
missingMonth |
Month of the individuals with no or imposed month of birth. |
imposeDay |
Whether to impose day of birth. |
imposeMonth |
Whether to impose month of birth. |
The function returns the table x with an extra column that contains the date of birth.
library(PatientProfiles)
cdm <- mockPatientProfiles()
cdm$cohort1 %>%
addDateOfBirthQuery()
mockDisconnect(cdm = cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.