spread_data is written to work with functions from
the revealedPrefs package.
checkWarp and similar "check" functions
take as input two
i matrices, one for goods and one for prices.
spread_data takes a dataframe and returns a list with two matrices, which
can then be passed into
and similar functions.
a dataframe containing columns with quantities and prices of goods
the columns within
a list containg two matrices:
a matrix containing quantities
a matrix containing prices
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.