push: Push metrics to databox

Description Usage Arguments Value References Examples

Description

Push metrics to databox

Usage

1
push(dco)

Arguments

dco

databaox client object created by client() or piped/passed from other add_metric() calls

Value

dco with an empty data slot (i.e. you can use this for more pipes/calls without fear of duplicating values)

References

https://developers.databox.com/api/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
databox::client() %>%
  add_metric("sales", 83000, Sys.Date()) %>%
  add_metric("sales", 4000, unit="USD") %>%
  add_metric("expenses", 87500) %>%
  add_metric("sales", 123000,
             mattrs=c("channel"="in-person",
                      "cheese"="manchego")) %>%
  push()

## End(Not run)

hrbrmstr/databox documentation built on May 17, 2019, 4:56 p.m.