Internal convenience function for creating a tmp_id column from 2 other columns in a dataframe.
Default is to use hy_id and cs_id columns to create a tmp_id = <hy_id>_<cs_id>.
Usage
add_tmp_id(df, x = "hy_id", y = "cs_id")
Arguments
- df
dataframe with x and y as columns
- x
character, column name in df to make up the first part of the added tmp_id column (tmp_id = x_y). Default is "hy_id."
- y
character, column name in df to make up the second part of the added tmp_id column (tmp_id = x_y). Default is "cs_id."
Value
The input dataframe with the "tmp_id" column added.