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. This function will be removed in the next version and replaced by the simpler function 'spir_data()'

sqs_spi_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<- sqs_spi_data(country = c("USA", "FRA"), years = "2018", )
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data(country = c("USA", "FRA"), year = c("2018", "2019"), indicators = "SPI")
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data("USA", "2019", c("SPI", "FOW"))
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data(, "2018", )
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data("USA", "2017", )
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data("USA", , )
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data(, , )
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'
myData<- sqs_spi_data()
#> Warning: 'sqs_spi_data()' will be removed in the next version and replaced by the simpler function 'spir_data()'