powered by
Read JSON-formatted Sensus data.
sensus.read.json.files(data.path, is.directory = TRUE, recursive = TRUE, local.timezone = Sys.timezone(), data.types = NULL)
Path to Sensus JSON data (either a file or a directory).
Whether or not the path is a directory.
Whether or not to read files recursively from directory indicated by path.
The local timezone to convert datum timestamps to, or NULL to leave the timestamps unconverted.
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.
c("AccelerometerDatum", "HeightDatum")
NULL
All data, listed by type.
# NOT RUN { # data.path = system.file("extdata", "example-data", package="SensusR") # data = sensus.read.json.files(data.path) # }
Run the code above in your browser using DataLab