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.
sqs_spi_data(country = data_long_country, years = data_long_year, indicators = data_long_indicator)
country | Countries' ISO code. |
---|---|
years | Years for which you want data. |
indicators | Indicators from the Social Progress Index. |
Data for the country, indicator and year requested
sqs_spi_indicator
for the SPI's indicator symbol and sqs_spi_country
for the country's ISO code.
myData<- sqs_spi_data(country = c("USA", "FRA"), years = "2018", ) myData<- sqs_spi_data(country = c("USA", "FRA"), year = c("2018", "2019"), indicators = "SPI") myData<- sqs_spi_data("USA", "2019", c("SPI", "FOW")) myData<- sqs_spi_data(, "2018", ) myData<- sqs_spi_data("USA", "2017", ) myData<- sqs_spi_data("USA", , ) myData<- sqs_spi_data(, , ) myData<- sqs_spi_data()