FUNCTION_DESCRIPTION
add_to_dataframe(dat, vec, by, newcol = "val")
dataframe
named vector whose names are a column of the dataframe
the name of the column that joining should be performed on.
the name of the new column to add from vec. Default: 'val'
dataframe with the same number of rows as 'dat' and an additional column corresponding to the values of 'vec'.