mark_to_logical: Convert character mark to logical

View source: R/converters.R

mark_to_logicalR Documentation

Convert character mark to logical

Description

A helper function to convert a character vector to logical where a single character string represents TRUE.

Usage

mark_to_logical(x, mark = "X", na_to_false = FALSE)

Arguments

x

A character vector.

mark

A string representing TRUE.

na_to_false

Convert NAs to FALSE?

Value

A logical vector


svraka/asmisc documentation built on June 12, 2025, 12:04 p.m.