Learn R Programming

BALD (version 1.0.0-3)

getPaymentNoPaymentMatrix: A function to turn a matrix of incremental payments into zero or ones depending upon whether a payment is positive.

Description

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.

Usage

getPaymentNoPaymentMatrix(object)

Arguments

object

The matrix of incremental payments.

Value

A matrix of zero or one (or NA) matching the structure of in input matrix.

Details

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.