I have shapefile of counties and want to calculate mean NDVI for each. I know reducing connected components and
ee.reducer.mean can be helpful in GEE but it wants it as CSV for further analysis in R pl.
First you have to use
.reduceRegions() to reduce your NDVI image over regions represeted as counties with
Then do export with
Note: by default CSV output will contain all attributes from source features + column with an output of a chosen reducer -
"mean" in this case.