Learn R Programming

GENEAcore (version 1.1.2)

create_MPI: Create Measurement Period Information

Description

Create Measurement Period Information

Usage

create_MPI(binfile, binfile_path, output_folder, out_rds = TRUE)

Value

List of measurement period information.

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

Examples

Run this code
binfile_path <- system.file("extdata/20Hz_file.bin", package = "GENEAcore")
con <- file(binfile_path, "r")
binfile <- readLines(con, skipNul = TRUE)
close(con)
output_folder <- tempdir()
MPI <- create_MPI(binfile, binfile_path, output_folder, out_rds = FALSE)

Run the code above in your browser using DataLab