country.names | R Documentation |
The function returns country names for countries given either by their codes or by index.
country.names(meta, countries = NULL, index = FALSE)
meta |
Object of class |
countries |
Vector of country codes or indices. If it is not given, names of all countries are returned. |
index |
Logical indicating if the argument |
The function considers countries that are included in the simulations and predictions. If the argument countries
is not given, all countries are returned in the same order as they are stored in the meta object.
Vector of country names.
Hana Sevcikova
get.countries.table
, get.country.object
sim.dir <- file.path(find.package("bayesTFR"), "ex-data", "bayesTFR.output")
m <- get.tfr.mcmc(sim.dir)
country.names(m)
# these two calls should give the same answer
country.names(m, c(800, 120))
country.names(m, c(15, 20), index=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.