Function dfToGrid has been replaced by btb_ptsToGrid
dfToGrid(df, sEPSG, iCellSize = NULL)
df
centroid points
sEPSG
epsg code
iCellSize
cell size
a grid