mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
24 lines
800 B
Plaintext
24 lines
800 B
Plaintext
{
|
|
"name": "majority",
|
|
"type": "function",
|
|
"groups": ["Aggregates"],
|
|
"description": "Returns the aggregate majority of values (most commonly occurring value) from a field or expression.",
|
|
"arguments": [{
|
|
"arg": "expression",
|
|
"description": "sub expression of field to aggregate"
|
|
}, {
|
|
"arg": "group_by",
|
|
"optional": true,
|
|
"description": "optional expression to use to group aggregate calculations"
|
|
}, {
|
|
"arg": "filter",
|
|
"optional": true,
|
|
"description": "optional expression to use to filter features used to calculate aggregate"
|
|
}],
|
|
"examples": [{
|
|
"expression": "majority(\"class\",group_by:=\"state\")",
|
|
"returns": "most commonly occurring class value, grouped by state field"
|
|
}],
|
|
"tags": ["occurring", "field", "majority", "aggregate"]
|
|
}
|