format_reason_default: Default Format for the Disposition Reason

Description Usage Arguments Details Value Author(s)

View source: R/derive_vars_disposition_reason.R

Description

Define a function to map the disposition reason

Usage

1
format_reason_default(reason, reason_spe = NULL)

Arguments

reason

the disposition variable used for the mapping (e.g. DSDECOD).

reason_spe

the disposition variable used for the mapping of the details if required (e.g. DSTERM).

Details

format_reason_default(DSDECOD) returns DSDECOD when DSDECOD is not 'COMPLETED' nor NA. format_reason_default(DSDECOD, DSTERM) returns DSTERM when DSDECOD is not 'COMPLETED' nor NA.

For example:

1
2
DCSREAS = format_reason_default(DSDECOD)
DCSREASP = format_reason_default(DSDECOD, DSTERM)

Value

A character vector

Author(s)

Samia Kabi


epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.