Add columns that have been removed from the primary dataset back into the primary dataset.
Arguments
- working_dat
Primary data containing information on hauls or trips. Table in FishSET database contains the string `MainDataTable`.
- raw_dat
Unmodified raw version of the primary dataset. Should be a character specifying a table from the FishSET database containing the string ‘MainDataTable’ and date table was created.
- vars
Character string, variables from
raw_dat
to add back intoworking_dat
.- project
Character, name of project. Parameter is used to generate meaningful table names in FishSET database.
Details
Add variables back into the dataset that were removed.
The removed variables are obtained from the raw_dat
and merged into the working data based on a row identifier.
The row identifier is created when a variable is removed using the select_vars
function.
The row identifier is used to match the raw data variables to working_dat
.