addSex {PatientProfiles} | R Documentation |
Compute the sex of the individuals
Description
Compute the sex of the individuals
Usage
addSex(x, sexName = "sex", missingSexValue = "None", name = NULL)
Arguments
x |
Table with individuals in the cdm. |
sexName |
name of the new column to be added. |
missingSexValue |
Value to include if missing sex. |
name |
Name of the new table, if NULL a temporary table is returned. |
Value
table x with the added column with sex information.
Examples
cdm <- mockPatientProfiles()
cdm$cohort1 %>%
addSex()
mockDisconnect(cdm = cdm)
[Package PatientProfiles version 1.1.1 Index]