characterToBoolean: Translates a character vector compromised "F" and "T" into a...

View source: R/tools.R

characterToBooleanR Documentation

Translates a character vector compromised "F" and "T" into a logical vector of FALSE and TRUE. All "F"'s become FALSE's, all "T"'s become TRUE'S

Description

Translates a character vector compromised "F" and "T" into a logical vector of FALSE and TRUE. All "F"'s become FALSE's, all "T"'s become TRUE'S

Usage

characterToBoolean(characters)

Arguments

characters

character vector to be translated

Value

logical vector

Note

NA and NAN give unpredictable results


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.