CombineVariableSetsAsBinary: CombineVariableSetsAsBinary

View source: R/combinevariablesetsasbinary.R

CombineVariableSetsAsBinaryR Documentation

CombineVariableSetsAsBinary

Description

Combines a list of variable sets to binary variables, matching categories between them.

Usage

CombineVariableSetsAsBinary(
  ...,
  compute.for.incomplete = TRUE,
  unmatched.pick.any.are.missing = TRUE
)

Arguments

...

One or more variable sets which should be Nominal, Ordinal, Nominal/Ordinal - Multi, Binary - Multi, or Binary - Multi (Compact)

compute.for.incomplete

A boolean value. If FALSE, cases with any missing data will have a missing vlaue. If TRUE, only cases whose data is entirely missing will be assigned a missing value.

unmatched.pick.any.are.missing

Boolean value. When one of the input variable sets is binary (Pick Any variable set) and additonal columns need to be added, the new column is fillend entirely with missing values when a value of TRUE is supplied. If set to FALSE, missing values will only be assigned for cases where all existing columns are missing. Note that for mutually-exclusive input variables, new columns will be created such that only cases with entirely missing values are assigned a missing value.


NumbersInternational/flipData documentation built on March 2, 2024, 10:52 a.m.