duplicate_remover {speccurvieR}R Documentation

Removes duplicate control variables

Description

Removes duplicate control variables from user input.

Usage

duplicate_remover(controls, x)

Arguments

controls

A vector of strings containing control variable names.

x

A string containing the independent variable name.

Value

A vector of strings containing control variable names

Examples

duplicate_remover(controls = c("control1", "control2*control3"),
                  x = "independentVariable");

[Package speccurvieR version 0.3.0 Index]