yes_no_to_logical: Converts strings to logical values

Description Usage Arguments Value

View source: R/to_logical.R

Description

Converts non-case-sensitive strings like "n" or "y" to logical values FALSE or TRUE.

Usage

1

Arguments

x

(character vector) strings like "y", "Y", "yes", "YES", "n", "N", "no", or "NO" that represent a logical value.

Value

vector where non-case-sensitive strings "y", "yes" have been converted to TRUE and all other values, including NA or empty string (""), have been converted to FALSE.


jimtyhurst/amazonreviews documentation built on July 10, 2020, 12:31 a.m.