addSexQuery {PatientProfiles} | R Documentation |
Query to add the sex of the individuals
Description
'r lifecycle::badge("experimental")' Same as 'addSex()', except query is not computed to a table.
Usage
addSexQuery(x, sexName = "sex", missingSexValue = "None")
Arguments
x |
Table with individuals in the cdm. |
sexName |
name of the new column to be added. |
missingSexValue |
Value to include if missing sex. |
Value
table x with the added column with sex information.
Examples
cdm <- mockPatientProfiles()
cdm$cohort1 %>%
addSexQuery()
mockDisconnect(cdm = cdm)
[Package PatientProfiles version 1.1.1 Index]