# Find example rasters
rasterFiles <- list.files(system.file('extdata', package='envirem'), full.names=TRUE)
tmin1 <- rast(grep('tmin_1\\.', rasterFiles, value=TRUE))
pacificCentric(tmin1, crop = TRUE)
Run the code above in your browser using DataLab