This function allows you to find and search the right country code associated with the Social Progress Index's Data. If no argument is filed, all indicators will be displayed. This function will be removed in the next version and replaced by the simpler function 'spir_country()'
sqs_spi_country(country)
country | The name of the country. |
---|
Country's ISO code.
spir_indicator
for the SPI's indicators and spir_data
to collect data when you have both indicator and country code.
mycountry <- sqs_spi_country()#> Warning: 'sqs_spi_country()' will be removed in the next version and replaced by the simpler function 'spir_country()'mycountry <- sqs_spi_country(country = "Canada")#> Warning: 'sqs_spi_country()' will be removed in the next version and replaced by the simpler function 'spir_country()'mycountry <- sqs_spi_country("Canada")#> Warning: 'sqs_spi_country()' will be removed in the next version and replaced by the simpler function 'spir_country()'