operate_columns: Operate columns

Description Usage Arguments Value Examples

View source: R/operate_columns.R

Description

The function operate_columns() is used to return some columns of a matrix as well as the columns resulting from adding or subtracting columns from each other

Usage

1
operate_columns(operacions, columnes, applylog = FALSE)

Arguments

operacions

list containig the positions of the columns and/or vectors with operations. e.g. list (1, 3, c(1, -2)) means a matrix with the columns 1, 3 and the column resulting from substracting the 2on column from the 1st.

columnes

MAtrix withthe columns to operate with

Value

A matrix with the columns asked for

Examples

1
2
3
4
input<-matrix(1:10, ncol=5)
colnames(input)<-paste("T",1:5,sep="")
operations<-list(c(-3,1),c(2,1))
operate_columns(operacions=operations, columnes=input)

jmbadia/GcxGctools documentation built on May 19, 2019, 4:06 p.m.