I want to create a data frame in R combining the bands wth the shapefile. The final file will have the pixels as rows, the bands as well as the other columns from the attribute table from the shapefile.
I want a csv table where the columns are the Landsat bands (say band 2, 3 and 4) along with other columns that are there in the attribute table of the shapefile (Country, State, Village name, Lat, Long etc)
bandsandpixels, terms that belong to me in raster format. And after, you mentionattribute table, and this one belong to shapefile (and other vector) format. Can you be more clear on what do you want to achieve ? – J. Monticolo May 23 '19 at 09:45