Relative Content

Tag Archive for rterra

How do I check with TRUE/FALSE return if there are NAs in a R SpatRaster?

I’m trying to check for NAs (missing values) in my SpatRaster (is a bioclimatic raster from CHELSA from ex [DOWNLOAD the raster 117MB] https://os.zhdk.cloud.switch.ch/chelsav2/GLOBAL/climatologies/1981-2010/bio/CHELSA_bio10_1981-2010_V.2.1.tif) but I can’t find the function that returns TRUE if there are NAs or FALSE if there is no NA in my raster.

Terra package rast() Raster Stack

I have a number (21) of raster layers (19 WorldClim climate data, euroDEM digital elevation model [DEM] and Corine LandCover [CLC]) which I am trying to create a raster stack for.