Skip to contents

[Deprecated]

This function is deprecated. This function is a default for derive_var_disposition_status() for the format_new_var argument. Please define your own function and use that as input for the cat_fun argument in derive_var_merged_cat() instead.

Define a function to map the disposition status. To be used as an input for derive_var_disposition_status().

Usage

format_eoxxstt_default(status)

Arguments

status

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

Value

A character vector derived based on the values given in status: "NOT STARTED" if status is "SCREEN FAILURE" or "SCREENING NOT COMPLETED", "COMPLETED" if status is "COMPLETED", "DISCONTINUED" if status is not in ("COMPLETED","SCREEN FAILURE", "SCREENING NOT COMPLETED") nor NA, "ONGOING" otherwise.

Details

Usually this function can not be used with %>%.