Learn R Programming

mds (version 0.3.2)

ifelse_cp: Class-Preserving If-Else If-Else function preserving T & F classes

Description

Class-Preserving If-Else If-Else function preserving T & F classes

Usage

ifelse_cp(test, yes, no)

Arguments

test

an object which can be coerced to logical mode

yes

return values for true elements of test.

no

return values for false elements of test.

Value

A vector of the same length and attributes as test.