Can perform one of three rough conversions:
For interval contracts (e.g., "220 - 229", "9% or more", etc.), convert the character strings to proper interval notation.
For contracts with multiple discrete outcomes (e.g., Candidate names), convert the character vector to simple factors.
For markets with a single binary question (e.g., "Will the Democrats have
a brokered convention in 2020?"), contracts returned are always "Yes" which
is converted to TRUE
.
contract_convert(x, decimal = FALSE)
A interval factor, unique factor, or logical vector.