wbstats (version 0.2)

wbformatcols: Format column names of World Bank API returns

Description

change the name of columns that we know of to our standardized names. If there are new columns added that we don't know about, leave their name the same

Usage

wbformatcols(df, col_names, blank2NA = TRUE)

Arguments

df

data frame returned from API call

col_names

a named vector of column names and what they will be changed to

blank2NA

logical. If TRUE blank values are converted to NA

Value

a data frame with the column names changed accordingly