mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-10 00:04:23 -04:00
13 lines
550 B
Plaintext
13 lines
550 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.",
|
|
"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"}
|
|
]
|
|
}
|