df.ctrlFactor: Creates a column that merges multiple columns

View source: R/df.ctrlFactor.R

df.ctrlFactorR Documentation

Creates a column that merges multiple columns

Description

Creates a new column in the input data frame corresponding to the combination of given control factors.

Usage

df.ctrlFactor(df, control)

Arguments

df

a data frame.

control

a numeric or character vector representing one or more columns that are combined into one column of control factors.

Details

Control factors are used in permutation approaches to constrain the permutation between those factors.

Value

The input data frame with an additional column named 'control', representing the control factors.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.