constSum: Constant sum

Description Usage Arguments Value Author(s) Examples

View source: R/constSum.R

Description

Closes compositions to sum up to a given constant (default 1), by dividing each part of a composition by its row sum.

Usage

1
constSum(x, const = 1, na.rm = TRUE)

Arguments

x

multivariate data ideally of class data.frame or matrix

const

constant, the default equals 1.

na.rm

removing missing values.

Value

The data for which the row sums are equal to const.

Author(s)

Matthias Templ

Examples

1
2
3

robCompositions documentation built on Jan. 13, 2021, 10:07 p.m.