Input: two vectors with same column names Output: a data frame with 2 vectors: 1) the first input vector only pruned to its unique values 2) a second vector with the average values for each unique value of the first (the matching is done by column name)
1 | get.average.over.unique.values(vec1, vec2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.