sc_read {stepcount} | R Documentation |
stepcount
Read a Data Set for stepcount
sc_read(
file,
sample_rate = NULL,
resample_hz = "uniform",
verbose = TRUE,
keep_pandas = FALSE
)
file |
path to the file for reading |
sample_rate |
the sample rate of the data. Set to |
resample_hz |
Target frequency (Hz) to resample the signal. If
"uniform", use the implied frequency (use this option to fix any device
sampling errors). Pass |
verbose |
print diagnostic messages |
keep_pandas |
do not convert the data to a |
A list of the data and information about the data
The data P30_wrist100
is from
https://ora.ox.ac.uk/objects/uuid:19d3cb34-e2b3-4177-91b6-1bad0e0163e7,
where we took the first 180,000 rows, the first 30 minutes of data
from that participant as an example.
file = system.file("extdata/P30_wrist100.csv.gz", package = "stepcount")
if (stepcount_check()) {
out = sc_read(file)
}
## Not run:
file = system.file("extdata/P30_wrist100.csv.gz", package = "stepcount")
if (stepcount_check()) {
out = sc_read(file, sample_rate = 100L)
}
## End(Not run)