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

A table containing individuals in a CDM reference.

sexName

Name of the sex column to add.

missingSexValue

Value to use when sex is missing.

name

Name of the new table. If NULL, a temporary table is returned.

Value

table x with the added column with sex information.

Examples


library(PatientProfiles)

cdm <- mockPatientProfiles(source = "duckdb")

cdm$cohort1 |>
  addSex()




PatientProfiles documentation built on Aug. 22, 2026, 1:07 a.m.