Learn R Programming

GGIR (version 2.7-1)

getStartEndNumeric: Generate start and end page of a day

Description

Generate start and end page of a day when working with argument selectdaysfile in g.part1. The user provides a date and a start hour which is used to generate the pages of the start hour minutes 5 minutes and the start hour plus 24 hours. Function not designed for direct use by package user.

Usage

getStartEndNumeric(d, hhr, startHour = 4)

Value

Data.frame with two columns: a start page five minutes before startHour on day d and an end page 24 hours after startHour

Arguments

d

Character with date (without time) format

hhr

GENEActiv::header.info(f) output

startHour

Hour that analysis starts at

Author

Joe Heywood <j.heywood@ucl.ac.uk>

Examples

Run this code
if (FALSE) {
hhr = GENEActiv::header.info("C:/myfile.bin")
mystartandendpage = getStartEndNumeric(d="20/5/2017", hhr, startHour = 4)
}

Run the code above in your browser using DataLab