This function will add extra columns to an existing dataframe. The second argument 'clmn' should specify which column(s) of the dataframe the percentage should be calculated by dividing each column's row-element by it's sum.
A dataframe with numeric columns.
the names of the columns for which the percentage column should be calculated from.
The original dataframe plus extra percentage columns corresponding to original columns in the dataframe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.