searchLabels: searchLabels

Description Usage Arguments Details Examples

View source: R/searchLabels.r

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

1

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

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

MarcoLugo/CANSIM2R documentation built on May 28, 2019, 1:47 p.m.