matrix or tibble/data.frame (e.g. the output of
revealed_comparative_advantage()).
If the input is a matrix it must be a zero/one matrix with countries in rows and products in columns.
If the input is a tibble/data.frame it must contain at least three columns with countries, products and
values.
country
string to indicate the column that contains exporting countries in revealed_comparative_advantage
(set to "country" by default)
product
string to indicate the column that contains exported products in revealed_comparative_advantage
(set to "product" by default)
value
string to indicate the column that contains traded values in revealed_comparative_advantage
(set to "value" by default)
method
string to indicate to use one of these methods: reflections, eigenvalues or fitness
(set to "fitness" by default)
iterations
number of iterations to use in the reflections method (set to 20 by default)
extremality
numeric coefficient to use in the fitness method (set to 1 by default)
keep_atlas
logical value to remove the countries not ranked in The Atlas of Economic Complexity
(set to FALSE by default)
tbl_output
logical value to use tibble output instead of a matrix output (set to FALSE by default)
References
For more information on complexity measures, indices and its applications see: