Consolidate columns after a merge
After base::merge()
, all non-id columns that were present in x
and y
do get a suffix .x
and .y
. If the y
value is missing, use the x
value (because the information for this token was not stylerignored),
otherwise the y
value (i.e. the styled value).
stylerignore_consolidate_col( flattened_pd, col, col_x = paste0(col, ".x"), col_y = paste0(col, ".y") )
flattened_pd |
A flattened parse table. |
col |
A string indicating the name of the column that should be consolidated. |
col_x, col_y |
The name of the column from the left (right) parent to consolidate. |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.