I am trying to resample settlements raster layer to have the same no. of rows and columns as NDVI layer using this code in R.

```
setwd('F:/IIRS/Project/biomod2/workdir')

library(raster)

LULC=raster("LULC_studyarea.tif")
NDVI=raster("ndvi_studyarea.tif")
Elevation=raster("DEM_studyarea.tif")
Settlement=raster("settlement_reclass2_EU_reclasses.tif")
SMOD=raster("smod_EH.tif")

plot(Settlement)

Settlement_rprj <-projectRaster(Settlement, crs = '+proj=longlat')

Settlement_rsmpl=resample(Settlement_rprj, NDVI, "billinear")

```

But it keeps on giving me Error in .local(x, y, ...) : invalid method

```
> Settlement_rprj
class      : RasterLayer 
dimensions : 904, 1237, 1118248  (nrow, ncol, ncell)
resolution : 1000, 1000  (x, y)
extent     : 8088000, 9325000, 2682000, 3586000  (xmin, xmax, ymin, ymax)
crs        : +proj=longlat +datum=WGS84 +no_defs 
source     : memory
names      : settlement_reclass2_EU_reclasses 
values     : 1, 11  (min, max)

> Settlement_rsmpl=resample(Settlement_rprj, NDVI, "billinear")
Error in .local(x, y, ...) : invalid method
> NDVI
class      : RasterLayer 
dimensions : 838, 1049, 879062  (nrow, ncol, ncell)
resolution : 0.008980789, 0.008974054  (x, y)
extent     : 87.98699, 97.40784, 21.94033, 29.46059  (xmin, xmax, ymin, ymax)
crs        : +proj=longlat +datum=WGS84 +no_defs 
source     : ndvi_studyarea.tif 
names      : ndvi_studyarea 
values     : -0.156, 0.9284  (min, max)

```

To run biomod2 I need to stack all the layers and for that all of them must have the same projection and same no. of Rows and Columns. but even after reprojecting them they don't have the same columns and rows. I am trying to resample them but it keep on giving me error in both R and ArcMap.