Selecting raster bands

raster_select(raster_list, band_id)

Arguments

raster_list

a list of stars or RasterStack objects

band_id

numeric, identifier of the band of the stars object