search for: bee_presence

Displaying 1 result from an estimated 1 matches for "bee_presence".

2024 Apr 18
1
Import multiple tif raster
...ported .tif files? Kind regards Sibylle > library(terra) > library(raster) > getwd() [1] "C:/Users/Sibylle St?ckli/Desktop" > > #first import all files in a single folder as a list > rastlist <- list.files(path = "/NCCS_Impacts_Lot2_2022/InVEST/Species_Input/bee_presence", pattern='.tif$', all.files= T, full.names= T) > > #import all raster files in folder using lapply > allrasters <- lapply(rastlist, raster) > > #to check the index numbers of all imported raster list elements > allrasters list() > > #call single raster el...