Add a position column based on column attributes
Usage
add_position_column(df, col_attributes)
Arguments
- df
A dataframe to modify.
- col_attributes
A named list of column attributes for exceptions.
Value
A dataframe, potentially with a new 'position' column.