pgk | R Documentation |
This is a convenience function, which returns just the world price
vector. Calls gk
and returns only the prices.
pgk(P, Q, pop = NULL)
P |
An m x n matrix (or dataframe) of prices (row country, column goods). |
Q |
An m x n matrix (or dataframe) of quantities (row country, column goods). |
pop |
Optional m-vector of population numbers (if Q is per capita). |
An n-vector of prices.
P <- matrix(1:6, ncol = 2) Q <- matrix(2:7, ncol = 2) pgk(P, Q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.