aval_resp {admiralonco} | R Documentation |
Map Character Response Values to Numeric Values
Description
Map character response values like "PR"
or "SD"
to numeric values.
Usage
aval_resp(arg)
Arguments
arg |
Character vector |
Value
-
1
ifarg
equals"CR"
, -
2
ifarg
equals"PR"
, -
3
ifarg
equals"SD"
, -
4
ifarg
equals"NON-CR/NON-PD"
, -
5
ifarg
equals"PD"
, -
6
ifarg
equals"NE"
, -
7
ifarg
equals"MISSING"
, -
NA_real_
otherwise
Author(s)
Stefan Bundfuss
Examples
aval_resp(c("CR", "PR", "SD", "NON-CR/NON-PD", "PD", "NE", "MISSING", "ND", NA_character_))
[Package admiralonco version 1.1.0 Index]