Description Usage Arguments Details Value Author(s)
View source: R/derive_vars_disposition_reason.R
Define a function to map the disposition reason
1 | format_reason_default(reason, reason_spe = NULL)
|
reason |
the disposition variable used for the mapping (e.g. |
reason_spe |
the disposition variable used for the mapping of the details
if required (e.g. |
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)
|
A character
vector
Samia Kabi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.