Interface between kdb+ and rmathlib