Learn R Programming

comtradr (version 0.2.1)

ct_use_pretty_cols: Use Pretty Column Headers

Description

Transform the column headers of return data from function ct_search into a more "polished" set of column headers. Intended for use with plots, publication tables, etc.

Usage

ct_use_pretty_cols(df)

Arguments

df

data frame, Comtrade API data frame, returned from function ct_search.

Value

data frame, input df with polish column headers.

Examples

Run this code
# NOT RUN {
# Pull API data
df <- ct_search("Germany", "Canada")

# Use polished column names
df <- ct_use_pretty_cols(df)
# }

Run the code above in your browser using DataLab