colRatios: [!] Calculate ratios between values of every column pair.

View source: R/colRatios.R

colRatiosR Documentation

[!] Calculate ratios between values of every column pair.

Description

[!] Calculate ratios between values of every column pair.

Usage

colRatios(x, col.names = c("full", "short", "rm.letters"))

Arguments

x

A matrix-like data.

col.names

One of the fpollowing: c("full", "short", "rm.letters").

[NOT UPDATED DESCRIPTION] If FALSE, whole names of compared columns will be used for column of ratios, e.g. "Column 1/ Column 2". If TRUE (default), shorter version of column name will be used, where parts of name which are common for both columns will not be repeated, e.g. "Column 1/2".

Value

A matrix with ratios between values of every column pair of the matrix x.

Examples

x <- Scores2[[]]
r1 <- colRatios(x)
r2 <- colRatios(x, col.names = "short")
r3 <- colRatios(x, col.names = "rm.letters")

head(x)
head(r1)

colnames(r1)
colnames(r2)
colnames(r3)


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.