Find the three best-performing and worst-performing commodities

Share:

Description

This function takes in a data set and returns the best three and worst three commodity names and their respective pnls. All these data will be presented as a formatted table.

Usage

1

Arguments

x

A data frame that contains data for individual commodities.

Value

output A list of the best three and worst three performers with their commodity names, ids and respective pnls