attachYesNo: Attach levels no and yes to a 0-1 vector.

View source: R/attachYesNo.r

attachYesNoR Documentation

Attach levels no and yes to a 0-1 vector.

Description

Attach levels "no" and "yes" to a 0-1 vector and turn it into a factor.

Usage

attachYesNo(v)

Arguments

v

Vector.

Value

Factor with the corresponding levels.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Examples

set.seed(1977)
vec <- round(runif(10, 0, 1))
attachYesNo(vec)

reporttools documentation built on April 11, 2025, 6 p.m.