Internal function to add a new column to a data frame and optionally position it before or after a specified column.
Arguments
- .data
A data frame to which the column will be added.
- new_col
A vector containing the values of the new column to append. The name of this vector will be used as the column name in the data frame.
- .before
(Optional) A string specifying the name of the column before which the new column should be inserted. Defaults to `NULL`.
- .after
(Optional) A string specifying the name of the column after which the new column should be inserted. Defaults to `NULL`.
