Abbreviate a column of a lookup table
abbreviate_lookup.Rd
This function takes a data frame (df) and the name of a column (col_name) as input, and returns a modified
version of the data frame with an additional abbr
column containing the abbreviated versions of the text
in the specified column.
The abbreviation is done by removing vowels from the words, except if the vowel is the first character of the word.
If no column name is specified, the function will use the first character column in the data frame.
If the input data frame does not have at least one column, or if the specified column does not exist or
is not a character column, the function will stop and return an error message.