create_MPI {GENEAcore} | R Documentation |
Create Measurement Period Information
Description
Create Measurement Period Information
Usage
create_MPI(binfile, binfile_path, output_folder, out_rds = TRUE)
Arguments
binfile |
Text lines read from an open connection to a bin file. |
binfile_path |
Path to the bin file to be processed. |
output_folder |
Folder to write MPI file in. |
out_rds |
Allows RDS output to be saved during MPI creation. |
Details
Function to create measurement period information (MPI) from a GENEActiv bin file
Value
List of measurement period information.
Examples
binfile_path <- system.file("inst/extdata/20Hz_file.bin", package = "GENEAcore")
con <- file(binfile_path, "r")
binfile <- readLines(con, skipNul = TRUE)
close(con)
MPI <- create_MPI(binfile)
[Package GENEAcore version 1.0.1 Index]