process_factor_data function

Treat factors as numeric values