Update compile_hes_data.R

added for loops to extract class of variable and max length of values for each variable.