asset_rank_raw: Asset Rank (Raw)

View source: R/multi-id-functions.R

asset_rank_rawR Documentation

Asset Rank (Raw)

Description

In a table with multiple asset IDs, returns the rank of the specified ID (subject) for the metric in the table.

Usage

asset_rank_raw(metric_df, subject, metric_name = NULL)

Arguments

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.

Value

A sentence denoting what rank in the asset class the specified asset ID (aka subject) has.

Examples

## Not run: 
asset_rank_raw(metric_df)

## End(Not run)


jupitertrades/tabletotext documentation built on Oct. 31, 2022, 5:47 p.m.