tt_get: Load or open a translation table

Description Usage Arguments Note Author(s) Examples

View source: R/tt_get.R

Description

Loads the translation table (tt) as a tibble or, if specified, opens the file in Excel.

Usage

1
tt_get(path_or_variable, open = F)

Arguments

path_or_variable

Character: Either a full path to a translation table or the variable name associated with a translation table currently in the PMA variables folder

open

Logical: defaults FALSE. If TRUE, the translation table will be opened in Excel and not loaded into R

Note

Users should note that additional functions for translation tables can be accessed via py$TranslationTable() (see py). Consult ipums-metadata library documentation for a complete list of available functions.

Author(s)

Matt Gunther

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

# Default: loads tt as tibble
tt_get("aborev") 

# Opens tt in Excel
tt_get("aborev", open = T) 

# Loads tt from my "in progress" folder
tt_get("Z:/pma/variables/tt_work/Matt/in_progress/aborev_tt.xls") 


## End(Not run)

mgunther87/ipumsPMA documentation built on Aug. 1, 2020, 12:22 a.m.