Text this: Improved frequency table with application to environmental data