searchLabels {CANSIM2R}R Documentation

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

  df <- getCANSIM("12-10-0005")
  searchLabels(df, "imports")

[Package CANSIM2R version 1.14.1 Index]