From bcf28c309dba7c28d53b6d481733713f525bd62c Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 6 Aug 2019 16:47:16 -0600 Subject: [PATCH] fixed difference params, resolves #369 --- .../transformations/aggregates/difference.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md b/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md index f864f6626..4f402e82d 100644 --- a/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md +++ b/content/v2.0/reference/flux/functions/built-in/transformations/aggregates/difference.md @@ -11,13 +11,13 @@ weight: 501 --- 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_ _**Output data type:** Float_ ```js -difference(nonNegative: false, column: "_value") +difference(nonNegative: false, columns: ["_value"]) ``` ## 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_ -### column -The column to use to compute the difference. -Defaults to `"_value"`. +### columns +The columns to use to compute the difference. +Defaults to `["_value"]`. -_**Data type:** String_ +_**Data type:** Array of Strings_ ## Subtraction rules for numeric types - The difference between two non-null values is their algebraic difference;