R/dfToGrid.R

Defines functions dfToGrid

Documented in dfToGrid

#' @title Depreciated function of btb_ptsToGrid
#' @name dfToGrid
#' @description Function dfToGrid has been replaced by btb_ptsToGrid
#' @param df centroid points
#' @param sEPSG epsg code
#' @param iCellSize cell size
#'
#' @return a grid
#' @export
#'

dfToGrid <- function(df, sEPSG, iCellSize = NULL){
  
  warning("`btb::dfToGrid()` was deprecated in btb 0.2.0. Please use `btb::btb_ptsToGrid())` instead.",
          immediate. = TRUE) 
  
  return(
    btb::btb_ptsToGrid(pts = df,
                       sEPSG = sEPSG,
                       iCellSize = iCellSize,
                       names_centro = c("x","y"),
                       inspire = FALSE)
    )
}

Try the btb package in your browser

Any scripts or data that you put into this service are public.

btb documentation built on Oct. 24, 2022, 5:10 p.m.