powered by
Closes compositions to sum up to a given constant (default 1), by dividing each part of a composition by its row sum.
constSum(x, const = 1, na.rm = TRUE)
The data for which the row sums are equal to const.
const
multivariate data ideally of class data.frame or matrix
constant, the default equals 1.
removing missing values.
Matthias Templ
data(expenditures) constSum(expenditures) constSum(expenditures, 100)
Run the code above in your browser using DataLab