sensus.read.json.files: Read JSON-formatted Sensus data.

Description Usage Arguments Value Examples

Description

Read JSON-formatted Sensus data.

Usage

1
2
3
sensus.read.json.files(data.path, is.directory = TRUE,
  recursive = TRUE, local.timezone = Sys.timezone(),
  data.types = NULL)

Arguments

data.path

Path to Sensus JSON data (either a file or a directory).

is.directory

Whether or not the path is a directory.

recursive

Whether or not to read files recursively from directory indicated by path.

local.timezone

The local timezone to convert datum timestamps to, or NULL to leave the timestamps unconverted.

data.types

Specific data types to read. A full list of data types can be found here: https://predictive-technology-laboratory.github.io/sensus/api/Sensus.Datum.html. For example c("AccelerometerDatum", "HeightDatum") will only read accelerometer and height data. Pass NULL to read all data types.

Value

All data, listed by type.

Examples

1
2
# data.path = system.file("extdata", "example-data", package="SensusR")	
# data = sensus.read.json.files(data.path)

SensusR documentation built on May 2, 2019, 1:27 a.m.