Revision b66ed0ee23d1154b053a30fa7aa5bfb421df575a authored by Matthias Templ on 21 June 2010, 08:03:56 UTC, committed by cran-robot on 21 June 2010, 08:03:56 UTC
1 parent e11c86d
constSum.Rd
\name{constSum}
\alias{constSum}
\title{
Constant sum
}
\description{
Closes compositions to sum up to a given constant (default 1), by
dividing each part of a composition by its row sum.
}
\usage{
constSum(x, const=1)
}
\arguments{
\item{x}{
multivariate data ideally of class data.frame or matrix
}
\item{const}{
constant, the default equals 1.
}
}
\value{
The data for which the row sums are equal to \code{const}.
}
\author{
Matthias Templ
}
\seealso{
\code{\link[compositions]{clo}}
}
\examples{
data(expenditures)
constSum(expenditures)
constSum(expenditures, 100)
}
\keyword{ manip }
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...