Learn R Programming

PatientProfiles (version 1.3.1)

addSexQuery: Query to add the sex of the individuals

Description

`r lifecycle::badge("experimental")` Same as `addSex()`, except query is not computed to a table.

Usage

addSexQuery(x, sexName = "sex", missingSexValue = "None")

Value

table x with the added column with sex information.

Arguments

x

Table with individuals in the cdm.

sexName

name of the new column to be added.

missingSexValue

Value to include if missing sex.

Examples

Run this code
# \donttest{
cdm <- mockPatientProfiles()

cdm$cohort1 |>
  addSexQuery()

mockDisconnect(cdm = cdm)
# }

Run the code above in your browser using DataLab