addSexQuery: Query to add the sex of the individuals

View source: R/addDemographicsQuery.R

addSexQueryR Documentation

Query to add the sex of the individuals

Description

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

Sex variable name.

missingSexValue

Value to include if missing sex.

Value

table x with the added column with sex information.

Examples


library(PatientProfiles)

cdm <- mockPatientProfiles(source = "duckdb")

cdm$cohort1 |>
  addSexQuery()




PatientProfiles documentation built on Feb. 24, 2026, 5:10 p.m.