Learn R Programming

PatientProfiles (version 1.3.1)

addSex: Compute the sex of the individuals

Description

Compute the sex of the individuals

Usage

addSex(x, sexName = "sex", missingSexValue = "None", name = NULL)

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.

name

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

Examples

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

cdm$cohort1 |>
  addSex()

mockDisconnect(cdm = cdm)
# }

Run the code above in your browser using DataLab