View source: R/basics_utilities.R
relative | R Documentation |
this function returns the relative proportion of each element based on a vector or dataframe.
relative(df)
df |
a dataframe or a vector of numeric values. |
This function was designed to perform faster than df/colSums(df) to be used in a bootstrap contest into Renkonen function.
Wilson Frantine-Silva <wilsonfratine@gmail.com>
df <- simulate_data(5,10)
head(df)
df.rel <- relative(df)
head(df.rel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.