A function to turn a matrix of incremental payments into zero or ones depending upon whether a payment is positive. Intended for internal use only.
getPaymentNoPaymentMatrix(object)
The matrix of incremental payments.
A matrix of zero or one (or NA
) matching the structure of in input matrix.
The conversion rule is as follows. If NA
, then NA
. Else if greater than zero, then 1. Else if equal to zero, then zero. Else NA
.