Select variables and build data.tables from the SIPP database, downloaded and built with anthony damico's usgsd tools. selects ALL waves from coredata, but only selected waves from topical modules.

ExtractorSippDB(dbfile, ck, which.core, which.tm, which.wgt, tk,
  subset = "", outfile, verbose, test = FALSE)

Arguments

dbfile

location of database

ck

string of variable names from core data to keep

which.core

numeric vector of which core waves to keep

which.tm

numeric vector of which topical modules to keep

which.wgt

character vector of name of weight tables

tk

list of character vectors of variable names from topical data to keep, one vector for each topical module

subset

SQL string for selecting from database

outfile

filename of where to save results

test

if TRUE extract only a short test dataset

Details

Notice that Damico's repo has since evolved. You can replicate what I did by using the code in a fork I created from his code, located at https://github.com/floswald/asdfree. In particular, you need to run the code in https://github.com/floswald/asdfree/blob/master/SIPP/down1996.R

To build data, don't use this function but the easier to use Extract.wrap

References

https://github.com/floswald/asdfree,https://github.com/ajdamico/usgsd, http://www.asdfree.com/