Standardise logical variables

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.