createUnisensData: createUnisensData

Description Usage Arguments Value

View source: R/physio-createUnisensData.R

Description

This function groups a couple of other functions which create together Unisens data out of a MarkerFile and physio sensor data of one subject

Usage

1
2
3
4
5
createUnisensData(data = physio174, subjectname = "174",
  destinationDirectory = "tests/testthat/datafortestingphysio/",
  nameUnisensDataFolder = "01_unisens_data",
  nameTrimmedUnisensDataFolder = "02_unisens_trimmed",
  pathMarkerFile = "tests/testthat/datafortestingphysio/marker174.csv")

Arguments

data

a dataframe, pyhsio sensordata for one subject

subjectname

a char name of a subject, for e.g. the subject_id_subject number. It will be the name of the subfolder with Unisense data.

destinationDirectory

a char directory where all the files and subfolder will be placed at.

nameUnisensDataFolder

a char name of a subdirectory in destinationDirectory where all the preproccessed unisens files will be created.

nameTrimmedUnisensDataFolder

a char name of a subdirectory in destinationDirectory where all the final unisens files will be placed at.

pathMarkerFile

a char, path to the marker file as csv. The function createMarkerFile will create a dataframe in the proper format.

Value

prints log files of processing and finally the path to all avaliable unisense data for each subject


Fiddleman/BrownieR documentation built on May 6, 2019, 4:36 p.m.