View source: R/multi-id-functions.R
most_correlated | R Documentation |
In a table with multiple asset IDs, reports the asset ID most correlated to the subject asset_Id ID.
most_correlated(metric_df, subject, template_id = NULL)
metric_df |
A dataframe with the following columns: asset_id (chr), value (dbl), time (date or dttm) |
subject |
The asset ID to measure correlations for. |
template_id |
Optional. The template to be used for the article. |
A sentence denoting the asset ID most correlated to the declared subject.
## Not run: most_correlated(metric_df) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.