fixlogical: Standardise logical variables

Description Usage Arguments Value

View source: R/utils.R

Description

Standardise logical variables

Usage

1
fixlogical(x, output = "logical", categories = c("No", "Yes"))

Arguments

x

a vector of two different types of entries (can be of type factor, integer, logical, or character).

output

a switch to set the desired output format. Defaults to "logical", but can be "character", "binary" or "factor".

categories

output target categories for binary/logical traits harmonization if output is not set to 'logical'.

Value

A vector of harmonized logical values.


traitdataform documentation built on March 23, 2021, 1:11 a.m.