wb_cor: wb_cor: computing correlations for World Bank data

Description Usage Arguments Author(s) See Also Examples

View source: R/wb_cor.R

Description

Prints a matrix which values are the correlations between the chosen indicators for each of the selected countries. There are two possible usage:

Usage

1
wb_cor(countries, indicators, dataset)

Arguments

countries

Vector of strings. It must include the ISO Alpha-2 code of the countries of interest.

indicators

Vector of strings. It must include the ID of the indicators from "The World Bank" datasets.

dataset

Data frame. It is recommended to create one using wb_tidy in order to avoid possible errors.

Author(s)

Sergio Picascia sergio.picascia@studenti.unimi.it

See Also

wb_tidy

Examples

1
2
3
4
5
6
wb_cor(countries = c("US", "CN", "RU"), indicators = c("SP.POP.TOTL", "SL.TLF.TOTL.IN", "NY.GDP.PCAP.CD"))

## Not run: 
wb_cor(dataset = my_data)

## End(Not run)

unimi-dse/8cf2b84a documentation built on Feb. 17, 2020, 5:02 a.m.