Description Usage Arguments Value Examples
View source: R/normalization.r
Takes a data frame and normalizes it such that the rowSum is one
1 |
data |
the numeric data to be normailized |
A data frame that is proportionally normalized
1 2 3 4 5 | df1 = data.frame(a = c(0.4, 0.3, .35, .45), b = c(.45, .40, .40, .3))
propnorm(df1)
df2 = data.frame(a = c(0.3, .34, .38), b = c(0.2, 0.21, 0.25), c = c(.45, .42, .41))
propnorm(df2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.