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.

sqs_spi_country(country)

Arguments

country

The name of the country.

Value

Country's ISO code.

See also

sqs_spi_indicator for the SPI's indicators and sqs_spi_data to collect data when you have both indicator and country code.

Examples

mycountry <- sqs_spi_country() mycountry <- sqs_spi_country(country = "Canada") mycountry <- sqs_spi_country("Canada")