| combine_scores | R Documentation |
Combine several wide score panels (Date + symbols) into a single panel
by applying one of several aggregation methods.
combine_scores(
scores_list,
method = c("mean", "weighted", "rank_avg", "trimmed_mean"),
weights = NULL,
trim = 0.1
)
scores_list |
List of wide score panels to combine (each has columns |
method |
Character, one of |
weights |
Optional numeric vector of length equal to |
trim |
Numeric in |
method = "mean": simple column-wise mean across panels.
method = "weighted": weighted mean; see weights.
method = "rank_avg": average of within-date normalized ranks.
method = "trimmed_mean": mean with trim fraction removed at both tails.
A data.table with columns Date + symbols, containing the combined scores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.