View source: R/1a-propr-backend.R
logratio_without_alpha | R Documentation |
This function applies a log-ratio transformation to a given data matrix without using an alpha parameter. The log-ratio transformation is based on a selected subset of columns specified by the 'use' argument.
logratio_without_alpha(ct, use)
ct |
A data matrix for which the log-ratio transformation will be performed. It is assumed that the matrix contains numerical values only. |
use |
An integer vector specifying the subset of columns to be used for the log-ratio transformation. |
A matrix containing the log-ratio transformed data.
# Sample input data
data <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2, byrow = TRUE)
# Applying log-ratio transformation to rows using columns 2 and 3 as reference
result <- logratio_without_alpha(data, use = c(2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.