QGIS/resources/function_help/json/array_majority
Damiano a9edb93e0c array_mode new parameter merge
- array_mode new parameter merge for return value behaviour
- updated expression documentation for array_mode, majority and minority
- updated tests
2021-02-04 16:41:16 +01:00

13 lines
660 B
Plaintext

{
"name": "array_majority",
"type": "function",
"groups": ["Arrays"],
"description": "Returns the value which has majority in the array. Majority means the count of the value is greather than half the size of the array.</p><p><b>Note</b><br/>For the same behaviour of the majority() function from Aggregates see array_mode().</p>",
"arguments": [ {"arg":"array","description":"an array"} ],
"examples": [
{ "expression":"array_majority(array(0,1,42,42,43))", "returns":"NULL"},
{ "expression":"array_majority(array(0,1,42,42,43,42))", "returns":"NULL"},
{ "expression":"array_majority(array(0,1,42,42,43,42,42))", "returns":"42"}
]
}