table_summary function

Get numeric summary grouped by factors