addFactorInteractions: Add a combination of two or more factor variables to a...

View source: R/addFactorInterations.R

addFactorInteractionsR Documentation

Add a combination of two or more factor variables to a protData object

Description

Adds a categorical variable to the data slot of a protdata that is a combination of two or more exisiting factor variables.

Usage

addFactorInteractions(protdata, basecols, name = NULL)

Arguments

protdata

A protdata object of which the data slot needs to be expanded.

basecols

The name of the columns in the existing data on which you base your new column.

name

The name of the new variable. If no name is provided (default: name=NULL), the names of the basecols will be concatenated separated by an "_".

Value

A protdata object with an added column in its data slot containing the new variable.

Examples

#.........

statOmics/MSqRob documentation built on Dec. 8, 2022, 6 a.m.