fixed difference params, resolves #369

pull/390/head
Scott Anderson 2019-08-06 16:47:16 -06:00
parent b6afe93875
commit bcf28c309d
1 changed files with 6 additions and 6 deletions

View File

@ -11,13 +11,13 @@ weight: 501
--- ---
The `difference()` function computes the difference between subsequent records. The `difference()` function computes the difference between subsequent records.
The user-specified column of numeric type is subtracted while others are kept intact. The user-specified columns of numeric type are subtracted while others are kept intact.
_**Function type:** Aggregate_ _**Function type:** Aggregate_
_**Output data type:** Float_ _**Output data type:** Float_
```js ```js
difference(nonNegative: false, column: "_value") difference(nonNegative: false, columns: ["_value"])
``` ```
## Parameters ## Parameters
@ -28,11 +28,11 @@ When set to `true`, if a value is less than the previous value, it is assumed th
_**Data type:** Boolean_ _**Data type:** Boolean_
### column ### columns
The column to use to compute the difference. The columns to use to compute the difference.
Defaults to `"_value"`. Defaults to `["_value"]`.
_**Data type:** String_ _**Data type:** Array of Strings_
## Subtraction rules for numeric types ## Subtraction rules for numeric types
- The difference between two non-null values is their algebraic difference; - The difference between two non-null values is their algebraic difference;