as.TRUEorFALSE: Resolve 'anything' to a logical value

as.TRUEorFALSER Documentation

Resolve 'anything' to a logical value

Usage

as.TRUEorFALSE(str)

Arguments

str

almost any value, but typically a character string of length 1

Details

Resolve the given value to a logical, using common ideas of T/F, Y/N, 0/1, etc. Allows automatic environment variable substituion, via env.sub

Value

logical value of length 1

Examples

as.TRUEorFALSE( pi)
as.TRUEorFALSE( "$HOME")

robertdouglasmorrison/DuffyTools documentation built on April 13, 2025, 8:51 p.m.