convert_T_to_check: Convert logical values to checks and exes

View source: R/convert_T_to_check.R

convert_T_to_checkR Documentation

Convert logical values to checks and exes

Description

Takes logical T and F and returns ✓ and ✗, respectively. If not logical, returns NA

Usage

convert_T_to_check(x, no_match = NA)

Arguments

x

a logical value or vector of logical values

no_match

what to put if there's no match (e.g. non-logical argument)? default=NA

Details

It can handle existing ✓ and ✗, so you can run result through convert_T_to_check without problem

Value

✓ if TRUE and ✗ if FALSE. If not logical, returns NA or another string supplied by no_match


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.