equivalent to fcode, ccode,... for the R language