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

A table containing individuals in a CDM reference.

sexName

Name of the sex column to add.

missingSexValue

Value to use when sex is missing.

Value

table x with the added column with sex information.

Examples


library(PatientProfiles)

cdm <- mockPatientProfiles(source = "duckdb")

cdm$cohort1 |>
  addSexQuery()




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