Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
793 B
Plaintext
Raw Normal View History

{
"name": "minority",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Aggregates"],
"description": "Returns the aggregate minority of values (least 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": "minority(\"class\",group_by:=\"state\")",
"returns": "least occurring class value, grouped by state field"
}],
"tags": ["least", "occurring", "field", "minority", "aggregate"]
}