reformatted_get: Return input data from the reformatted folder

Description Usage Arguments Author(s) Examples

View source: R/reformatted_get.R

Description

Searches the PMA "reformatted" folder to find a STATA file for the specified sample, then returns the STATA file as a tibble. Variables will be imported as Haven " labelled" objects (following the convention in the ipumsr package).

CAUTION: Search is performed using clues in the file path, but may not result in the file intended by the user if mulitple files exist for the sample.

Usage

1

Arguments

sample

A PMA sample

path

Optional: Rather than searching, the user may provide the full path to the desired STATA file

Author(s)

Matt Gunther

Examples

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

# Search by sample:
reformatted_get("ke2014a_sp") 

# Specify path directly:
reformatted_get(path = "./reformatting/kenya/2014a/sp/01_orig/ke2014a_sp_orig.dta") 


## End(Not run)

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