CANSIM2R (version 1.14.1)

searchLabels: searchLabels

Description

Helper function to search through the Hmisc labels in order to obtain the variable name mapping to their respective labels. It can be particularly useful for bigger datasets for which manual exploration and visualization can be prohibitive.

Usage

searchLabels(df, pattern)

Arguments

df

- data.frame obtained using the getCANSIM function.

pattern

- the string to search for in the variable labels.

Details

Search is case insensitive.

Examples

Run this code
# NOT RUN {
  df <- getCANSIM("12-10-0005")
  searchLabels(df, "imports")
# }

Run the code above in your browser using DataLab