boolean_literal: Mutate a boolean literal

View source: R/mutator-boolean.R

boolean_literalR Documentation

Mutate a boolean literal

Description

Replaces a boolean constant (TRUE, FALSE, T, or F) with another one.

Usage

boolean_literal(from, to)

Arguments

from

The literal to be replaced. One of "TRUE", "FALSE", "T", "F".

to

The literal to replace with.

Examples

boolean_literal("TRUE", "FALSE")
boolean_literal("FALSE", "TRUE")
boolean_literal("T", "F")
boolean_literal("F", "T")


muttest documentation built on May 14, 2026, 5:10 p.m.