Description Usage Arguments Author(s) Examples
View source: R/reformatted_get.R
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.
1 | reformatted_get(sample, path)
|
sample |
A PMA sample |
path |
Optional: Rather than searching, the user may provide the full path to the desired STATA file |
Matt Gunther
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.