I have a feature collection but I need to make a new feature collection from it by taking only some columns , I am new to google earth engine and am unable to do so ,the code is
NDVI=NDVI.map(function(
f=ee.Feature(f)
return ee.Feature(f.toDictionary(dates).values(dates))
})
print(NDVI)
here NDVI is the main feature collection and dates is a list of properties that I want to extract per feature, the error I am getting is
FeatureCollection (Error)
Collection.map: A mapped algorithm must return a Feature or Image.