Merge data tables using a left join
Arguments
- dat
Primary data containing information on hauls or trips. Table in the FishSET database contains the string 'MainDataTable'.
- other
A second data table to join to MainDataTable. Use string if referencing a table saved in the FishSET database.
- project
Project name.
- main_key
String, name of column(s) in MainDataTable to join by. The number of columns must match
other_key
.- other_key
String, name of column(s) in the
other
table to join by. The number of columns must matchmain_key
.- other_type
String, the type of secondary data being merged. Options include "aux" (auxiliary), "grid" (gridded), "spat" (spatial), and "port".
- merge_type
String, the type of merge to perform.
"left"
keeps all rows fromdat
and merges shared rows fromother
."full"
keeps all rows from each table.