replace_boolean: Replace a boolean variable

View source: R/replace_boolean.r

replace_booleanR Documentation

Replace a boolean variable

Description

Replace a boolean

Usage

replace_boolean(x, true_value = NULL, false_value = NULL)

Arguments

x

A boolean vector

true_value

A single value, that will replace TRUE values

false_value

A single value, that will replace FALSE values

Value

A numeric value

Examples


replace_boolean(c(T,T,T,F,F),1,2)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.