updated covariance example

pull/327/head
Scott Anderson 2019-07-11 13:04:46 -06:00
parent 1c065ab1a6
commit 30ba2eef27
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ _**Data type:** String_
## Examples
```js
from(bucket: "example-bucket")
|> range(start:-5m)
|> range(start:-5m)
|> map(fn: (r) => ({r with x: r._value, y: r._value * r._value / 2}))
|> covariance(columns: ["x", "y"])
```