Learn R Programming

spiR (version 0.2.1)

spir_data: spir_data

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.

Usage

spir_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

Run this code
# NOT RUN {
myData<- spir_data(country = c("USA", "FRA"), years = "2018", )
myData<- spir_data(country = c("USA", "FRA"), year = c("2018", "2019"), indicators = "SPI")
myData<- spir_data("USA", "2019", c("SPI", "FOW"))
myData<- spir_data(, "2018", )
myData<- spir_data("USA", "2017", )
myData<- spir_data("USA", , )
myData<- spir_data(, , )
myData<- spir_data()
# }

Run the code above in your browser using DataLab