Update df.R

already exists a df function in R, renaming it to d1f. Will also be updating functions that require the df function