decimalprices: Convert eighth of a cent grain prices to decimal

Description Usage Arguments Value Examples

Description

Convert eighth of a cent grain prices to decimal

Usage

1

Arguments

x

is a column of a datatable of Grain contract BBO raw data from CME Group's Datamine. it should have 4 characters: hundreds, tens, ones, and 8th of a cent since futures quotes are in cents per bushel and the ticks are 8ths of a cent this function will only work for corn prices < $100/bushel. At this date, grain prices above $100/ bushel are unimaginable.

Value

The column of the orginal datatable with the TrPrice column converted to numeric in decimal format.

Examples

1
2
3
head(corn_110110$TrPrice)
temp <- decimalprices(corn_110110$TrPrice)
head(temp)

ProfMalloryResearch/BBOTools documentation built on May 8, 2019, 3:23 a.m.