replacefactor function

Replace Factor Values