This function allows you to find and display the Social Progress Index data according to the selected parameters. If no arguments are filled, all data will be displayed.

spir_data(country = spi_country, years = spi_year, indicators = spi_indicator)

Arguments

country

Countries' ISO code.

years

Years for which you want data.

indicators

Indicators from the Social Progress Index.

Value

Data for the country, indicator and year requested.

See also

spir_indicator for the SPI's indicator symbol and spir_country for the country's ISO code.

Examples

myData<- spir_data(country = c("USA", "FRA"), years = "2018", ) myData<- spir_data(country = c("USA", "FRA"), year = c("2018", "2019"), indicators = "SPI") myData<- spir_data("USA", "2019", c("SPI", "FOW")) myData<- spir_data(, "2018", ) myData<- spir_data("USA", "2017", ) myData<- spir_data("USA", , ) myData<- spir_data(, , ) myData<- spir_data()