Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."],[[["\u003cp\u003eGroups records based on a specified field, creating separate groups for each unique value in that field.\u003c/p\u003e\n"],["\u003cp\u003eApplies a given reducer function to each group of records, effectively reducing each group to a single result.\u003c/p\u003e\n"],["\u003cp\u003eAssigns the original reducer to process individual records within each group, excluding the grouping field itself.\u003c/p\u003e\n"],["\u003cp\u003eOrganizes the grouped data within a dictionary-like structure, using 'group' as the default key to access the grouped records.\u003c/p\u003e\n"]]],["The `Reducer.group` function groups records based on a specified `groupField` (defaulting to field 0). It then applies a provided `reducer` to each group, excluding the grouping field. The result of the reducer on each group is stored under a `groupName` key (defaulting to \"group\"). The function itself returns a `Reducer` object. The `groupField` type can be an Integer.\n"],null,["Groups reducer records by the value of a given input and reduces each group with the given reducer.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------|---------|\n| Reducer.group`(`*groupField* `, `*groupName*`)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|--------------------------|------------------------------------------------------------------|\n| this: `reducer` | Reducer | The reducer to apply to each group, without the group field. |\n| `groupField` | Integer, default: 0 | The field that contains record groups. |\n| `groupName` | String, default: \"group\" | The dictionary key that contains the group. Defaults to 'group'. |"]]