make_logical: Convert a vector to logical

Description Usage Arguments

Description

make_logical will check with hides_logical that it is posible to coerce to logical, then the given true and false parameter will guide how to convert it. Values enumerated in na.values will be converted to NA so it's not necessarily required to pass a completely binary input

Usage

1
make_logical(x, true = NULL, false = NULL, na.values = NULL)

Arguments

x

A vector.

true

The value to set to TRUE, if not given, will guess.

false

The value to set to FALSE, if not given, will guess.

na.values

Values to set as NA.


moodymudskipper/hidden documentation built on May 20, 2019, 9:59 a.m.