I want to display the information of a raster layer as a table or data frame in R. In particular, I am most interested in the raster name and resolution.
I want the information which shows by just reading the raster layer or by:
r <- raster("mypath/B01.tif")
print(r)
How to return print(r) as a table or data frame?