addSex: Compute the sex of the individuals

View source: R/addDemographics.R

addSexR 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)



PatientProfiles documentation built on April 3, 2025, 9:47 p.m.