formatTable function

Creates a flextable or gt object from a dataframe