addSex {PatientProfiles} | R Documentation |
Compute the sex of the individuals
Description
Compute the sex of the individuals
Usage
addSex(
x,
cdm = lifecycle::deprecated(),
sexName = "sex",
missingSexValue = "None"
)
Arguments
x |
Table with individuals in the cdm. |
cdm |
A cdm_reference object. |
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 %>%
addSex()
CDMConnector::cdmDisconnect(cdm = cdm)
[Package PatientProfiles version 0.8.0 Index]