Dear list members,

I am confused with the names of raster layers using raster package.  I
working with 2 layers and when I do stack, appear like the names of the
layers are not the same that I used with the stack function.

bio1 <- raster("bio1_23.grd")

bio1cr <- crop(bio1, cr)
bio1crmask =  rasterize(cr, bio1cr)
bio1res = mask(bio1cr, bio1crmask)

bio2 = raster("bio2_23.grd")

bio2cr <- crop(bio2, cr)
bio2crmask =  rasterize(cr, bio2cr)
bio2res = mask(bio2cr, bio2crmask)

s = stack(bio1res, bio2res)

I was thinking that the layers in the stack are: bio1res and bio2res, but
to use it I need to use: bio1_23 and bio2_23. Why is that?

Best,

Manuel

-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
mspinola10@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

