sensus.read.json.files {SensusR}R Documentation

Read JSON-formatted Sensus data.

Description

Read JSON-formatted Sensus data.

Usage

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

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

[Package SensusR version 2.3.1 Index]