added currying version of biasdiffs function in df2ra.R