spiR_data-deprecated: sqs_spi_data (deprecated)

Description Usage Arguments Value See Also Examples

Description

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()'

Usage

1
2
3
4
5
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

1
2
3
4
5
6
7
8
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()

spiR documentation built on March 5, 2021, 5:05 p.m.