numchar2fct function

Applying var2fct across data set