View source: R/multi-id-functions.R
asset_rank_pct | R Documentation |
In a table with multiple asset IDs, returns the percent rank of the specified ID (subject) for the metric in the table.
asset_rank_pct(metric_df, subject, metric_name = NULL)
metric_df |
A dataframe with the following columns: asset_id (chr), value (dbl), time (date or dttm), asset_class (chr), and name (chr). |
subject |
The specific asset ID whose rank will be calculated, and for whom the sentence will be about. |
A sentence denoting what rank in the asset class the specified asset ID (aka subject) has in percent form; in other words, what percent of the asset class had a lower value.
## Not run: asset_rank_raw(metric_df) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.