I want to write a df with the freq of 150 raster objects.
I know I can read individual raster objects with
raster_x <- raster::raster()
I can further get the freq with
raster_freq_y <- raster::freq(raster_x)
After that I can bind the freq outputs of multiple raster objects to a df with
cbind.data.frame(raster_freq_x, raster_freq_y)
What I dont know is how to do this for 150 raster objects in one go?
Should I use a loop? If so what kind of loop would make sense?
Any help is appreciated.