storage.read: Get data object from storage

Description Usage Arguments Value Examples

Description

read data from Bigstream storage via Bigstream storage API

Usage

1
2
3
storage.read(storage.name, field = c("all", "data", "id", "meta", "_data",
  "_id", "_meta"), from = 1, offset = NULL, last = 0, limit = 10,
  flatten = TRUE)

Arguments

storage.name

storage name

field

Specify object output "id","meta" or "data"

from

start from object index default is 1

offset

Lookup data after given object id

last

number of lastest data to read (overwrite "from" arguments)

limit

limit object output

flatten

return flatten Data.frame or return JSON if option is FALSE

Value

data from Bigstream storage

Examples

1
2
3
4
5
6
7
8
## Not run: 
host <- "http://sample.bigstream.io"
storage_name <- "sample.sensordata"
token <- "token"
bs.connect(host, token)
storage.read(storage_name)

## End(Not run)

igridproject/Rbigstream documentation built on July 2, 2018, 1:14 a.m.