vecttor: Alr of a bacteria

View source: R/vecttor.R

vecttorR Documentation

Alr of a bacteria

Description

Writtes a vector with the alr transformation of the bacteria i at time points t=2,...,Tt.

Usage

vecttor(i, especie, Tt, EspecieMaxima)

Arguments

i

Number. Position of the bacteria that we make the alr in the matrix especie. i must be different that EspecieMaxima.

especie

Matrix that contains at row i the bacterial taxa of bacteria i at all time points. The bacteria placed in the last row of the matrix will be used as reference in the alr transformation and will be at the denominator of the balance.

Tt

Number of time points available

EspecieMaxima

Row in which the bacteria used as reference is in especie. This is the bacteria that is going to be at the denominator of the balance and the denominator of the alr transformation. As a result, in this function, EspecieMaxima must be equal to E

Value

Returns a vector with the alr transformation of the bacteria i at time points t=2,...,Tt.

Examples



set.seed(123)
especie=t(gtools::rdirichlet(10,c(1,3,1,2,4)))
Tt=10
EspecieMaxima=5
i=2

vecttor(i,especie,Tt,EspecieMaxima)



CoDaLoMic documentation built on April 12, 2025, 2:18 a.m.