py_read_gt3x | R Documentation |
Read GT3X File
py_read_gt3x(path, create_time = FALSE, verbose = FALSE)
path |
file to GT3X file |
create_time |
Should time stamps be created? |
verbose |
print diagnostic messages |
A list of meta data, accelerometry data, and time stamps
reticulate::py_config() path = system.file("extdata", "TAS1H30182785_2019-09-17.gt3x", package = "pygt3x") if (pygt3x:::have_python_requirements()) { res = py_read_gt3x(path) } ## Not run: if (pygt3x:::have_python_requirements()) { out = impute_zeros(res$data, res$dates, res$header) out = impute_zeros(res) url = "https://github.com/THLfi/read.gt3x/files/3522749/GT3X%2B.01.day.gt3x.zip" destfile = tempfile(fileext = ".zip") dl = download.file(url, destfile = destfile, mode = "wb") gt3x_file = unzip(destfile, exdir = tempdir()) gt3x_file = gt3x_file[!grepl("__MACOSX", gt3x_file)] path = gt3x_file res = py_read_gt3x(path) df = impute_zeros(res$data, res$dates, res$header) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.